Skip to main content

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.

Source Distribution

Textcipher-0.0.1.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

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

Textcipher-0.0.1-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: Textcipher-0.0.1.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.1

File hashes

Hashes for Textcipher-0.0.1.tar.gz
Algorithm Hash digest
SHA256 93c3b70343f654e192a2c763cef6ddab36800b23783fd4f92fcfba599e0320b3
MD5 41543ffce4201e8c3e5b1c5723abcb3b
BLAKE2b-256 5476ada4f8773bcd478bb3080c143366d5e15e7ca4c2e634d8f95dc95345d41d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: Textcipher-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.1

File hashes

Hashes for Textcipher-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 91c1a28490bccb7085130d976980008a927db64554b1fd8fb54f34eb5007ba40
MD5 0f7e138139066f2b27ddc44c369c90e7
BLAKE2b-256 eeb1cec6f56dc341e7ed553b7ee21b0b644caf79b1a77c8f19abb9640b93f827

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