cryptobject
cryptobject provides AES256 encryption to every string value in an object.
Installation
npm i cryptobject
Usage
To use cryptobject, simply import the package and call one of encryptor
or decryptor
to create a function capable of applying encryption or decryption
to an object.
without es6 imports
const cryptobject = default;const encryptor decryptor = cryptobject; const obj = 'key': 'value' ; const passphrase = 'testpass'; const encrypt = ;const encryptedObject = ; const decrypt = ;const decrytpedObject = ;
with es6 imports (babel)
;const encryptor decryptor = cryptobject; const obj = 'key': 'value' ; const passphrase = 'testpass'; const encrypt = ;const encryptedObject = ; const decrypt = ;const decrytpedObject = ;
License
MIT