@haydenhigg/skip

1.0.0 • Public • Published

@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

Package Sidebar

Install

npm i @haydenhigg/skip

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

3.29 kB

Total Files

4

Last publish

Collaborators

  • haydenhigg