Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
RunKit + npm: cryptr
node v10.24.1
endpoint
share
tweet
const Cryptr = require('cryptr'); const cryptr = new Cryptr('myTotalySecretKey'); const encryptedString = cryptr.encrypt('I love pizza!'); const decryptedString = cryptr.decrypt(encryptedString); console.log(encryptedString); // 5590fd6409be2494de0226f5d7 console.log(decryptedString); // bacon
Created from: https://npm.runkit.com/cryptr
Loading…
Clone and edit this document