Code Monkey home page Code Monkey logo

ciphering-cli-tool's Introduction

Ciphering CLI Tool

Ciphering CLI Tool is an encryption tool that may encode and decode a text by 3 substitution ciphers.

Installation

Use the node package manager to install Ciphering CLI Tool.

npm install

Testing

Use the node package manager to test Ciphering CLI Tool.

npm run test

Usage

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

  1. -c, --config: config for ciphers Config is a string with pattern {XY(-)}n, where:
  • X is a cipher mark:
    • C is for Caesar cipher (with shift 1)
    • A is for Atbash cipher
    • R is for ROT-8 cipher
  • Y is flag of encoding or decoding (mandatory for Caesar cipher and ROT-8 cipher and should not be passed Atbash cipher)
    • 1 is for encoding
    • 0 is for decoding
  1. -i, --input: a path to input file
  2. -o, --output: a path to output file

For example, config "C1-C1-R0-A" means "encode by Caesar cipher => encode by Caesar cipher => decode by ROT-8 => use Atbash"

Usage example:

$ node my_ciphering_cli -c "C1-C1-R0-A" -i "input.txt" -o "output.txt"

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

output.txt Myxn xn nbdobm. Tbnnfzb ferlm "_" nhteru!

Author

๐Ÿ‘ค Pavel Hancharou

  • Discord: Pavel Hancharou(@pavelhancharow)

ciphering-cli-tool's People

Contributors

dependabot[bot] avatar pavelhancharow avatar

Stargazers

 avatar

Watchers

 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.