Code Monkey home page Code Monkey logo

ceaser-ciper-cli's Introduction

Ceaser cipher CLI tool

alt text

Usage:

Pass node index into command interpreter with specified options


Options:

You need to use 2 mandatory options with arguments:

  • Shift

Points out how much letters will replace down if value is positive or replace up if negative;

--shift <value> or -s <value>

examples:

node index --shift 7

node index -s -3

  • Action

Pass 'encode' to encrypt message or 'decode' vice versa

--action <value> or -a <value>

exmaples:

node index --action encode

node index -a decode

Also you can you use 2 additional options:

  • Input

Tells program where obtain source string. Input value should be file with .txt extension. If doesn't specified program will recive input from process input stream.

node index --input <sourceFile>

exmaples:

node index --input source.txt

node index -i ./folder/source.txt

  • Output

Tells program where obtain source string. Input value should be file with .txt extension. If doesn't specified program will dispatch output value to process output stream.

node index --output <distFile>

exmaples:

node index --output dist.txt

node index -o ./folder/dist.txt


Usage example:

Create new encrypted message from index.txt file and wirite it to output.txt with shift 7.

node index -a encode -s 7 -i "./input.txt" -o "./output.txt"

input.txt

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

output.txt

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

ceaser-ciper-cli's People

Contributors

namir7 avatar wildmakaka avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.