Skip to content

sbamniya/npm-object-encryption-decryption

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

npm-object-encryption-decryption

NPM package for object encryption and decryption

Usage

To get the this package. Run the following command:

npm install object-encrypt-decrypt --save

after installing package you need to add this to your node main file (e.g. index.js or server.js) by adding following command:

var objEncDec = require('object-encrypt-decrypt')

Encrypt

to encrypt object:

  var object = {
    name: 'John Doe',
    email: '[email protected]',
    mobile: '**********',
    education: 'BTECH'
  }
  var encObject = objEncDec.encrypt(object);

Decrypt

To Decrypt the encrypted object:

  var decObject = objEncDec.decrypt(encObject);

About

NPM package for object encryption and decryption

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published