0.1.1 • Published 7 months ago
@bad-ciphers/caesar v0.1.1
@bad-ciphers/caesar
An implementation of the Caesar Cipher.
Usage
import { encode, decode } from '@bad-ciphers/caesar';
const encoded = encode('Hello World!', 7);
// This will encode the string by shifting each letter by 7
const decoded = decode('Olssv Dvysk!', 7);
// decoded === 'Hello World!'