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 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.1-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file cipher_tools-0.0.1.tar.gz.

File metadata

  • Download URL: cipher_tools-0.0.1.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

Hashes for cipher_tools-0.0.1.tar.gz
Algorithm Hash digest
SHA256 84260e318ee12471db8eaad37587ccbfc4cd966ac5785e3a830b5288a3d18e94
MD5 dfaf89b246dafd7f8ce8b2655589baef
BLAKE2b-256 bfb35b25aa2c910657804b22f5fbb843359c09c2c7978ee09db2c0a9d0fb90bb

See more details on using hashes here.

File details

Details for the file cipher_tools-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: cipher_tools-0.0.1-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

Hashes for cipher_tools-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 42b44d2f595005ac382ed8c88379d82e49ae7cd3a391f302fc50d265b04e7100
MD5 0c690e282250a95d689985f6d2ce54db
BLAKE2b-256 9ed2ba838a8ad484873544a5a48a5fcd06cc470768bd87d64e4a5b1681b9eb2f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page