1.0.2 • Published 5 years ago
@haydenhigg/otp v1.0.2
@haydenhigg/otp
A small library for OTP (one time pad) encryption. Ideal behavior taken from here.
Usage
const otp = require("@haydenhigg/otp");
var encrypted = otp.encrypt("passphrase", "the message");
var decrypted = otp.decrypt("passphrase", encrypted);
console.log(encrypted); //=> "IHW ETZJAYI"
console.log(decrypted); //=> "THE MESSAGE"