Console tool for text encoding/decoding by Caesar cipher algorithm. It gets as an input some text file or you can print text direct to console. As result it returns transformed text to another file or console.
Usage:
- Download or clone this repo
- Install dependencies
$ npm install - Run
$ node caesar_cli -a <action> -s <shift_value> -i <input_file> -o <output_file>
To run add 4 params:
- -s, --shift: a shift - REQUIRED
- -a, --action: an action encode/decode - REQUIRED
- -i, --input: an input file
- -o, --output: an output file
Options shift and action are required. You can omit options input or output. And in that case text will be received from console and printed to console.
Usage example:
$ node caesar_cli -a encode -s 7 -i "./input.txt" -o "./output.txt"$ node caesar_cli --action encode --shift 7 --input plain.txt --output encoded.txt$ node caesar_cli --action decode --shift 7 --input decoded.txt --output plain.txt