node-laravel-encryptor
Version:
node version Laravel Illuminate/Encryption/Encrypter.php
30 lines (25 loc) • 839 B
Markdown
* npm packages update
* [Bug](https://github.com/AdSegura/node-laravel-encryptor/issues/1) discovered by [LaserGoat](https://github.com/lasergoat)
* options.key_length now equal to 128/256 that means aes-128-cbc aes-256-cbc...
* GenerateRandomKey function updated.
* tests
* mocha tests no TS
* Encryptor npm binary
* `JsonSerializer.serialize` now stringify an object
a la ExpressJS cookie json serializer style,
adding string `j:` to stringify object.
* `JsonSerializer.unserialize` now checks before parsing if string
starts with `j:`
* Custom Serializer can be injected into Encryptor
* fixes with custom errors
* tests
* Serializer can be php-serializer or JSON native nodejs
* force_serialize option added when Serializer is php-serialize
* tests