aes-encrypt
Some (hopefully) sensible defaults for encrypting in node
The data is serialized using msgpack5
. This allows for any valid js structure to be encrypted/decrypted
Install
npm instal --save aes-encrypt
Use
Super simple
const encrypt decrypt = const encrypted = // returns a Bufferconst decrypted = // returns 'some text'
With options
const encrypt decrypt = const encrypted = // returns a base64 encoded stringconst decrypted = // returns 'some text'