@linkrj/scrambler
v1.0.1
Published
Scrambler uses simple cyphers for replace
Readme
scrambler
Pure JavaScript/TypeScript implementation of simple substitution ciphers: ROT13, ROT47, and Zenit Polar.
Each cipher rotates by half its alphabet, so scramble and descramble are the same operation applied twice.
API
import { rot13, rot47, zenitPolar } from '@linkrj/scrambler';
rot13.scramble('Hello'); // 'Uryyb'
rot13.descramble('Uryyb'); // 'Hello'
rot47.scramble('hello'); // '96==@'
zenitPolar.scramble('message'); // 'mossigo'CLI
scrambler <cipher> <message>$ scrambler rot13 "Hello World"
Uryyb Jbeyq
$ scrambler rot13 "Uryyb Jbeyq"
Hello WorldCiphers: rot13, rot47, zenitPolar.
