Skip to main content

A command-line tool for encrypting and decrypting strings using various ciphers

Project description

ucyph

Encrypt and Decrypt text from the command line using ciphers that are common and/or historical.

Table of Contents

Installation

pip install ucyph

Usage

Examples:

This command calls the Vigenere cipher with a key of 'password', and encrypts the text from hello.txt in place as an output file is not specified.

ucyph 5 hello.txt -k 'password'

To decrypt the text, simply add -d flag to the end of the command:

ucyph 5 hello.txt -k 'password' -d

This command calls the Playfair cipher with a key of 'password', and writes the encrypted text from hello.txt into output.txt.

ucyph 11 hello.txt -o output.txt -k password

Now, to decrypt the text from output.txt, simply add -d flag to the end of the command(note that an output file is not specified):

ucyph 11 output.txt -k password -d

Ciphers

Cipher list and usage codes:

Cipher Usage Code Requires Key
Caesar 3 No
Vigenere 5 Yes
Playfair 11 Yes
Rot-13 13 No
Rot-47 47 No

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

ucyph-0.1.12.tar.gz (7.1 kB view hashes)

Uploaded Source

Built Distribution

ucyph-0.1.12-py3-none-any.whl (7.0 kB view hashes)

Uploaded Python 3

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