Created
May 22, 2018 16:35
-
-
Save sagardere/c34bba122cc9610ecaadf4846bb76f37 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Cryptr = require('cryptr'), | |
cryptr = new Cryptr('secretKey'); | |
var encryptedString = cryptr.encrypt('sagar'), | |
decryptedString = cryptr.decrypt(encryptedString); | |
console.log(encryptedString); // 0ed11b7de924ff2a81260fb5d44a954c | |
console.log(decryptedString); // sagar | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment