Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 634 Bytes

File metadata and controls

24 lines (17 loc) · 634 Bytes

cryptobject

CircleCI

cryptobject provides AES256 encryption to every string value in an object.

Installation

npm install --save cryptobject

Usage

To use cryptobject, simply import the package and call one of encrypt or decrypt to create encrypt or decrypt an object.

Usage

const { encrypt, decrypt } = require('cryptobject')('passphrase');

const obj = { 'key': 'value' };

const encryptedObject = encrypt(obj);
const decrytpedObject = decrypt(encryptedObject);

License

MIT