Skip to content

victorlitvinenko/caesar-cipher-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Caesar cipher CLI tool

(encrypts only latin letters, case insensitive)

Prerequisites

Install:

First you need to clone the repo:

git clone https://github.com/victorlitvinenko/caesar-cipher-cli.git

Next go to the repo directory and install all dependencies:

npm install

After that type the console command with the node interpreter. For example:

node ./task1/my_caesar_cli -a encode -s 3

Сommand line parameters:

  • -s, --shift <number> - How many characters to shift
  • -i, --input <fileName> - File path for encryption / decryption
  • -o, --output <filePath> - File path for recording the encryption / decryption result
  • -a, --action <encode/decode> - specify <encode> for encryption, <decode> - for decryption

Example:

node task1/my_caesar_cli --action encode --shift 7 --input plain.txt --output encoded.txt

encodes information from the plain.txt with a 7 characters shift and writes the result to the encoded.txt

If one of the files does not exist, an error will appear

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published