caesarize
v1.0.0
Published
a caesar cipher decoder and encoder in typescript!
Downloads
3
Maintainers
Readme
Caesarize
A simple node module built in Typescript that uses Caesar Cipher to encrypt and decrypt text!
What is Caesar Cipher?
Caesar Cipher is a substitution cipher that alters text by shifting the alphabet by a certain number determined by the user.
Installation:
npm install caesarize
Usage:
const caesarize = require("caesarize");
Example Output
Caesarize.encrypt("Hello, World!", 5); // "Mjqqt, Btwqi!"
Caesarize.encrypt("Hello, World!", -10); // "Xubbe, Mehbt!"
Caesarize.decrypt("Mjqqt, Btwqi!", 5); // "Hello, World!"
Caesarize.decrypt("Xubbe, Mehbt!", -10); // "Hello, World!"