@astronomer/cryptobject
v2.0.1
Published
Traverse a given object and encrypt/decrypt the strings with AES.
Downloads
5
Keywords
Readme
cryptobject
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