cifar

1.0.3 • Public • Published

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"

/cifar/

    Package Sidebar

    Install

    npm i cifar

    Weekly Downloads

    1

    Version

    1.0.3

    License

    ISC

    Unpacked Size

    3.38 kB

    Total Files

    3

    Last publish

    Collaborators

    • iamlizu