cifar
A little modification of what you may call caesar cipher.
Usage
const feed = require("cifar");
- Pass the string to be encrypted and the number of position to shift (forward only).
console.log(feed("Hello", 2)); // prints "JgNnQ"
- Pass the string to be encrypted and the number of position to shift (forward only).
console.log(feed("Hello54#", 2)) // prints "JgNnQ76%"
- Pass the string to be encrypted and the number of position to shift (forward only), same number and special characters at the end may generate different cipher.
console.log(feed("Hello", 2, "54", "#")) // prints "JgNnQ76"