Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 796 Bytes

README.md

File metadata and controls

31 lines (22 loc) · 796 Bytes

caesar-cipher-cli

Task 1. Caesar cipher CLI tool (Rsschool)

Implemented CLI tool that encode and decode a text by Caesar cipher.

CLI tool accept 4 options (short alias and full name):

  1. -s, --shift: a shift
  2. -i, --input: an input file
  3. -o, --output: an output file
  4. -a, --action: an action encode/decode

Usage example:

$ node src/root -a encode -s 7 -i "./input.txt" -o "./output.txt"
$ node src/root --action encode --shift 7 --input plain.txt --output encoded.txt
$ node src/root --action decode --shift 7 --input decoded.txt --output plain.txt

input.txt This is secret. Message about "_" symbol!

output.txt Aopz pz zljyla. Tlzzhnl hivba "_" zftivs!