encrypt-decrypt-it

1.0.2 • Public • Published

Encryption and decryption are possible using this module. To see how to use this module with the syntax in details visit our article about encrypt-decrypt-module.

Usage

Include the module:

var edi = require('encrypt-decrypt-it');

Encrypt our string:

encrypted_string = edi.encryptIt('Here my string''MY_PASSWORD');
console.log(encrypted_string);

Decrypt the encrypted string to get original string:

decrypted_string = edi.decryptIt(encrypted_string, 'MY_PASSWORD');
console.log(decrypted_string);

Well, these are the example only with required parameters. There is also an optional parameter for both encryptIt() and decryptIt() methods which contains the cipher algorithm. By default, it set to "aes-128-cbc".

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    5
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    5
  • 1.0.1
    2
  • 1.0.0
    2

Package Sidebar

Install

npm i encrypt-decrypt-it

Weekly Downloads

9

Version

1.0.2

License

ISC

Unpacked Size

1.95 kB

Total Files

3

Last publish

Collaborators

  • codespeedy