Skip to content

metarouterio/cryptobject

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Traverse a given object and encrypt/decrypt the strings with AES.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors