@haydenhigg/substitution
A small library for substitution encipherment.
Usage
const substitution = require("@haydenhigg/substitution");
var encrypted = substitution.encrypt("the message", "the key");
var decrypted = substitution.decrypt(encrypted, "the key");
console.log(encrypted); // RCY JYQQTBY
console.log(decrypted); // THE MESSAGE