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
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
Textcipher-0.0.1.tar.gz
(2.1 kB
view hashes)
Built Distribution
Close
Hashes for Textcipher-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91c1a28490bccb7085130d976980008a927db64554b1fd8fb54f34eb5007ba40 |
|
MD5 | 0f7e138139066f2b27ddc44c369c90e7 |
|
BLAKE2b-256 | eeb1cec6f56dc341e7ed553b7ee21b0b644caf79b1a77c8f19abb9640b93f827 |