Skip to main content

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.

pipeline status

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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cipher_tools-0.0.3-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

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

Hashes for cipher-tools-0.0.3.tar.gz
Algorithm Hash digest
SHA256 b17ad6032ce60afd4d55ebb8de4ac311148585ebb2b22af596cc47aff275f9fe
MD5 40c9ebb44eb8b158af252874844e537b
BLAKE2b-256 46d0cbe70e26731eb63c02b8b8bba65c78a10e6357a74d542408211ff721839b

See more details on using hashes here.

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

Hashes for cipher_tools-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 736701eb69d822db2958ec88300735a9b17c6f43fe313e8218e87f92694fc374
MD5 04f504cf564eb49a0a201fb5171cd2d2
BLAKE2b-256 53beb00fa1cd6eebe5633a1c425dbfe3f5b942bc2c9ba53207de17c2b4ce3ef0

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 files

0.0.2

2 files

0.0.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page