I want to encrypt an email id and decrypt that how? I checked the documentation, but it only shows password encryption, and that is showing a true or false result.
Any way to encrypt and decrypt email id, please help me?
You can use cryptr for encryption and decryption. With bcrypt you can't perform encryption and decryption of data. cryptr can be used as follows:
const Cryptr = require('cryptr');
const cryptr = new Cryptr('myTotalySecretKey');
let email = [email protected];
let encryptdEmail = cryptr.encrypt(email);
console.log("Decrypted email = ", cryptr.decrypt(encryptdEmail ));
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With