1.0.0 • Published 7 months ago

caesarize v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
7 months ago

Caesarize

npm version npm downloads

Package available on NPM

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!"