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
Release history Release notifications | RSS feed
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.3.tar.gz
(2.6 kB
view hashes)
Built Distribution
Close
Hashes for cipher_tools-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 736701eb69d822db2958ec88300735a9b17c6f43fe313e8218e87f92694fc374 |
|
MD5 | 04f504cf564eb49a0a201fb5171cd2d2 |
|
BLAKE2b-256 | 53beb00fa1cd6eebe5633a1c425dbfe3f5b942bc2c9ba53207de17c2b4ce3ef0 |