1.0.3 • Published 3 years ago

cifar v1.0.3

Weekly downloads
5
License
ISC
Repository
-
Last release
3 years ago

cifar

A little modification of what you may call caesar cipher.

Usage

const feed = require("cifar");
  1. Pass the string to be encrypted and the number of position to shift (forward only).
console.log(feed("Hello", 2)); // prints "JgNnQ"
  1. Pass the string to be encrypted and the number of position to shift (forward only).
console.log(feed("Hello54#", 2)) // prints "JgNnQ76%"
  1. 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"