GithubHelp home page GithubHelp logo

ron-cipher's Introduction

ron-cipher

Build Status codecov.io PyPI version

A CLI tool that implements various ciphers, including the ability to encrypt and decrypt

Supported Ciphers

  • Caeser
  • Vigenère

How To Use

This tool is meant to be used as a CLI (command line interface). You will need to install the package from pypi

pip install ron-cipher

After installing, you can immediately start using the tool from your command line

Encryption

Default Rotation
ron_cipher caeser -i "some random string" -a encrypt
Custom Rotation

The rotation is an int which works by pushing the values over by 1. Do note that the dictionary used to store characters and their indices is likely not what you expected. Please take a look at ciphers.cipher_helper if you want to see how characters are stored

ron_cipher caeser -r 1 -i "some random string" -a encrypt

Decryption

Default Rotation
ron_cipher caeser -i "4c0> e.#qc0 4(e^#[" -a decrypt
Custom Rotation
ron_cipher caeser -r 1 -i ">:.3 =~/2:. >?=7/5" -a decrypt

Encryption

Default Secret
ron_cipher vigenere -i "some random string" -a encrypt
Custom Secret

The secret is a string which works by getting the indices of the characters within the secret and adding them to the respective indices of the plaintext to find the encrypted value

ron_cipher vigenere -s "supersecret" -i "some random string" -a encrypt

Decryption

Default Rotation
ron_cipher vigenere -i ",[<^ ,?@(g? ,{[#@0" -a decrypt
Custom Rotation
ron_cipher vigenere -s "supersecret" -i ",i%+ ,&<6>{ m\\#," -a decrypt

Troubleshooting

There is some weirdness when it comes to some inputs and how bash decides to interpret them. If you want to be safe, try the following ways:

  • Wrap With Quotes
  • Use Equals

Example:

ron_cipher caeser -s "supersecret" -i=",i%+ ,&<6>{ m\\#," -a decrypt

ron-cipher's People

Contributors

nairraghav 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.