Git Product home page Git Product logo

cipherctl's Introduction

cipherctl

A cipher tool that encodes and decodes in some of the most popular ciphers.

Installation

You can install cipherctl by simply doing the following:

Linux Distro's

$ release=$(curl -s https://api.github.com/repos/jbmcfarlin31/cipherctl/releases/latest | grep "browser_download_url.*zip" | cut -d '"' -f 4 | cut -d "/" -f 8)
$ wget https://github.com/jbmcfarlin31/cipherctl/releases/download/$release/cipherctl

# Or you can manually grab it
$ wget https://github.com/jbmcfarlin31/cipherctl/releases/download/1.1/cipherctl

$ chmod +x cipherctl

$ ./cipherctl

MacOSx

$ release=$(curl -s https://api.github.com/repos/jbmcfarlin31/cipherctl/releases/latest | grep "browser_download_url.*zip" | cut -d '"' -f 4 | cut -d "/" -f 8)
$ wget https://github.com/jbmcfarlin31/cipherctl/releases/download/$release/cipherctl.app.zip

# Or manually grab it via
$ wget https://github.com/jbmcfarlin31/cipherctl/releases/download/1.1/cipherctl.app.zip

$ unzip cipherctl.app.zip
$ cd cipherctl.app/Contents/MacOS
$ chmod +x cipherctl
$ ./cipherctl

General Help Usage

cipherctl -h
usage: cipherctl.py [-h] [--debug]
                    {atbash,caesar,rot5,rot13,rot18,rot47,vigenere} ...

The cipherctl utility allows you to encode or decode in various ciphers

positional arguments:
  {atbash,caesar,rot5,rot13,rot18,rot47,vigenere}
                        ciphers
    atbash              Atbash cipher actions
    caesar              Caesar cipher actions
    rot5                ROT-5 cipher actions
    rot13               ROT-13 cipher actions
    rot18               ROT-18 cipher actions
    rot47               ROT-47 cipher actions
    vigenere            Vigenere cipher actions

optional arguments:
  -h, --help            show this help message and exit
  --debug               Enables verbose logging for cipherctl commands

Optional debugging can be enabled for verbose output:

./cipherctl --debug

How to Use

The cipherctl tool can be used to encode or decode in the following formats:

  • Atbash
  • ROT-5
  • ROT-13
  • ROT-18
  • ROT-47 (beta)
  • Caesar Cipher
  • Vigenere Cipher

The usage for the utility is fairly simple, like so:

Atbash

# For encrypting Atbash, you can do:
./cipherctl atbash -m "hello world"
SVOOL DLIOW

# For decrypting
cipherctl atbash -m "SVOOL DLIOW"
HELLO WORLD

Caesar Cipher

# For encrypting Caesar Cipher
./cipherctl casesar -a encode -m "hello world" -s 7
OLSSV DVYSK

# For decrypting
./cipherctl caesar -a decode -m "OLSSV DVYSK" -s 7
HELLO WORLD

ROT-5

# For encrypting, you can do:
./cipherctl rot5 -m "123 456"
678 901

# For decrypting
./cipherctl rot13 -m "678 901"
123 456

ROT-13

# For encrypting, you can do:
./cipherctl rot13 -m "hello world"
URYYB JBEYQ

# For decrypting
./cipherctl rot13 -m "URYYB JBEYQ"
HELLO WORLD

ROT-18

# For encrypting
./cipherctl rot18 -m "hello world123"
URYYB JBEYQ678

# For decrypting
./cipherctl rot18 -m "URYYB JBEYQ678"
HELLO WORLD123

ROT-47 - BETA

# For encrypting, you can do:
./cipherctl rot47 -m "hello world123"
96==@ H@C=5`ab

# For decrypting
./cipherctl rot13 -m "96==@ H@C=5`a"
hello world123

Vigenere Cipher

# For encrypting, you can do:
./cipherctl vigenere -a encode -m "hello world" -k "salts"
ZEWEG OOCEV

# For decrypting
./cipherctl vigenere -a decode -m "ZEWEG OOCEV" -k "salts"
HELLO WORLD

Contributing

If you wish to contribute, please feel free to let me know. I'd be more than happy to let you.

cipherctl's People

Contributors

jbmcfarlin31 avatar

Watchers

James Cloos avatar  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.