Skip to main content

A cipher package meant for CLI use to encrypt/decrypt using various ciphers

Project description

ron-cipher

Build Status codecov.io

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

Caeser Cipher

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

Vignère Cipher

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ron_cipher-1.0.1.tar.gz (4.5 kB view details)

Uploaded Source

File details

Details for the file ron_cipher-1.0.1.tar.gz.

File metadata

  • Download URL: ron_cipher-1.0.1.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.1

File hashes

Hashes for ron_cipher-1.0.1.tar.gz
Algorithm Hash digest
SHA256 dab23c618b8a02b97f2d24431b6b90b5f756ff7021971e4b41fb8269935eff17
MD5 c04d42277c75a145a7c6efa8486b69c3
BLAKE2b-256 24a05201ccb45d58bcfda15c54f1c05dc397fd11c5f2e8afe5c9803b47c128a6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page