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!
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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cipher-tools-0.0.3.tar.gz.
File metadata
- Download URL: cipher-tools-0.0.3.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
poetry/1.0.3 CPython/3.8.1 Linux/5.5.5-arch1-1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b17ad6032ce60afd4d55ebb8de4ac311148585ebb2b22af596cc47aff275f9fe
|
|
| MD5 |
40c9ebb44eb8b158af252874844e537b
|
|
| BLAKE2b-256 |
46d0cbe70e26731eb63c02b8b8bba65c78a10e6357a74d542408211ff721839b
|
File details
Details for the file cipher_tools-0.0.3-py3-none-any.whl.
File metadata
- Download URL: cipher_tools-0.0.3-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
poetry/1.0.3 CPython/3.8.1 Linux/5.5.5-arch1-1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
736701eb69d822db2958ec88300735a9b17c6f43fe313e8218e87f92694fc374
|
|
| MD5 |
04f504cf564eb49a0a201fb5171cd2d2
|
|
| BLAKE2b-256 |
53beb00fa1cd6eebe5633a1c425dbfe3f5b942bc2c9ba53207de17c2b4ce3ef0
|