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
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.2.tar.gz.
File metadata
- Download URL: cipher_tools-0.0.2.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e49b952ffe12d62743709bd5a9e90f221cb43d9afc167cf7f2c1faf4071f8e21
|
|
| MD5 |
99a8ae9011f87ad4695e0bded2d28d69
|
|
| BLAKE2b-256 |
a1a6c77f5df87bcf635e000f45d54592bca1b21931318b5f8908ef2a333c9864
|
File details
Details for the file cipher_tools-0.0.2-py3-none-any.whl.
File metadata
- Download URL: cipher_tools-0.0.2-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
315dc1e8a8e02263d6d55f2f887acd69c449625af16ecca193e539fec7c4faed
|
|
| MD5 |
e7b876d4a9938680dc3a6b1af01efb07
|
|
| BLAKE2b-256 |
3ffd26f2e2e3d6843b59428361cc50fa2e2e4528aaca761f0014a4371be2cf21
|