Skip to main content

A python library to assist in the creation of ciphers

Project description

Cipher Tools

This is a python library that contains some tools for making ciphers. In was originaly made of use at a childrens workshop at PyCon UK 2019.

Installation

Run the following to install:

pip install cipher_tools

Usage

Shift

Shift some text by an arbitrary amount. Text case is preserved.

Code:

from cipher_tools import shift

shifted_text = shift("AbCdEfgYZ", 2)
print(shifted_text)

Output:

CdEfGhiAB

Rot13

You can encrypt / decrypt text using rot13.

Code:

from cipher_tools import rot13

# Apply Rot13 to a phrase
cipher_text = rot13("Hello, World!")
print(cipher_text)

Output:

Uryyb, Jbeyq!

Code:

from cipher_tools import rot13

# Decrtpt the text
plain_text = rot13("Uryyb, Jbeyq!")
print(plain_text)

Output:

Hello, World!

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

cipher_tools-0.0.1.tar.gz (6.0 kB view hashes)

Uploaded Source

Built Distribution

cipher_tools-0.0.1-py3-none-any.whl (2.9 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