Ciphering CLI Tool is tool that let you encode or decode text use next ciphers:
CLI tool accepts 3 options (short alias and full name):
-c,--config: config for ciphers Config is a string with pattern{XY(-)}n, where:
Xis a cipher mark:Cis for Caesar cipher (with shift 1)Ais for Atbash cipherRis for ROT-8 cipher
Yis an encode or decode flag (mandatory for Caesar ciphers and ROT-8 ciphers and not required for Atbash ciphers)1is for encoding0is for decoding
-i,--input: a path to input file (optional)-o,--output: a path to output file (optional)For example: config "C1-C1-R0-A" means "encode by Caesar cipher => encode by Caesar cipher => decode by ROT-8 => use Atbash"
Basic usage: node index.js -c "C1" -i "input.txt" -o "output.txt"
input.txt: This is secret. Message about "_" symbol!
output.txt: Uijt jt tfdsfu. Nfttbhf bcpvu "_" tzncpm!
Use yarn: yarn ciphering -c "C1-C1-A-R1" -i "input.txt" -o "output.txt"
input.txt: This is secret. Message about "_" symbol!
output.txt: Myxn xn nbdobm. Tbnnfzb ferlm "_" nhteru!
Use npm: npm run ciphering -- -c "C0-A-R0" -i "input.txt" -o "output.txt"
input.txt: This is secret. Message about "_" symbol!
output.txt: Zlka ka aoqboz. Goaasmo sreyz "_" augreh!