@ilihub/caesar-cipher
Typescript functions for performing Caesar Cipher encryption and decryption.
Installation
pnpm add @ilihub/caesar-cipher
npm install @ilihub/caesar-cipher
yarn add @ilihub/caesar-cipher
Usage
import { CaesarCipher } from "@ilihub/caesar-cipher";
const caesarCipher = new CaesarCipher();
const encrypted = caesarCipher.encrypt("Hello World", 3);
console.log(encrypted);
const decrypted = caesarCipher.decrypt(encrypted, 3);
console.log(decrypted);
const alldecrypted = caesarCipher.decryptAll(encrypted);
console.log(alldecrypted);
Support the development of new open-source projects from ilihub through crowdfunding.
The core of ilihub is our crowd-funded open-source projects, licensed under the permissive MIT license. Sponsorship increases the rate of bug fixes, documentation improvements, and feature development.