@haydenhigg/skip
A small library for Nth-letter (skip) encipherment.
Usage
const skip = require("@haydenhigg/skip");
var encrypted = skip.encrypt(4, "the message");
var decrypted = skip.decrypt(4, encrypted);
console.log(encrypted); // T SGHMSEEEA
console.log(decrypted); // THE MESSAGE
var encryptedWithKey = skip.encrypt(4, "the message", "the key");
var decryptedWithKey = skip.decrypt(4, encryptedWithKey, "the key");
console.log(encryptedWithKey); // R QBCJQYYYT
console.log(decryptedWithKey); // THE MESSAGE