@uniiem/caesar
v0.1.3
Published
Caesar cipher implementation in TypeScript.
Downloads
14
Maintainers
Readme
@uniiem/caesar
A simple caesar cipher library.
Installation
npm install @uniiem/caesar
Usage
import { encode, decode rot13 } from '@uniiem/caesar';
const encoded = encode('Caesar cipher lib test!', 3);
console.log(encoded); // 'Fdhvdu flskhu ole whvw!'
const decoded = decode(encoded, 3);
console.log(decoded); // 'Caesar cipher lib test!'
const rot13ed = rot13('Caesar cipher lib test!');
console.log(rot13ed); // 'Pnrfne pvcure yvo grkg!'