We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add end-to-end encryption with custom passphrase.
Use the AES Encryption from crypto-js
crypto-js
# Plain text encryption var CryptoJS = require("crypto-js"); // Encrypt var ciphertext = CryptoJS.AES.encrypt('my message', 'secret key 123').toString(); // Decrypt var bytes = CryptoJS.AES.decrypt(ciphertext, 'secret key 123'); var originalText = bytes.toString(CryptoJS.enc.Utf8); console.log(originalText); // 'my message'
store the encrypted text to the DB and add a flag, passphrase: true ask user to give the passphrase to decode the text and show.
passphrase: true
The text was updated successfully, but these errors were encountered:
akib22
No branches or pull requests
Add end-to-end encryption with custom passphrase.
Use the AES Encryption from
crypto-js
store the encrypted text to the DB and add a flag,
passphrase: true
ask user to give the passphrase to decode the text and show.The text was updated successfully, but these errors were encountered: