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 our string:
encrypted_string = edi.encryptIt;console.log;
Decrypt the encrypted string to get original string:
decrypted_string = edi.decryptIt;console.log;
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".