Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

A text encryption/decryption package

Project description

Textcipher

Python module for text based cipher(s)

List of available ciphers:

  • caesar Cipher (Shift Cipher)
  • more coming soon.....

Example

  • Caesar Cipher
from Textcipher.Ciphers import Caesar

# Example message
msg = "A quick brown fox jumped over the lazy dog."
# Our key for encryption and decryption
key = 23

# the message, key and the mode must be passed to the instance of Caesar
# encryption or decryption depends on the 'mode' parameter. if mode is set True while encrypting then it must be
# set to False for decrypting and vice versa.

encrypt = Caesar(msg, key, True)
encrypted_msg = encrypt.crypto()
print(encrypted_msg)

decrypt = Caesar(encrypt.crypto(), key, False)
decrypted_msg = decrypt.crypto()
print(decrypted_msg)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for Textcipher, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size Textcipher-0.0.1-py3-none-any.whl (3.4 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size Textcipher-0.0.1.tar.gz (2.1 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page