Decrypt/Encrypt text using various cipher techniques
Project description
Cryptology
This is a package which decrypt/encrypts text using a few different methods.
Installation
Run the following to install:
pip install cryptology
Usage
from cryptology import atbash_decrypt
# Generate decryption
string=atbash_decrypt(cipher_text="GSRHRHMLGEVIBHVXIVGZGZOO")
print(string)
Other functions include:
import cryptology as cp
# Generate decryption
# Atbash
str_atbash_decrypted=cp.atbash_decrypt(cipher_text="GSRHRHMLGEVIBHVXIVGZGZOO")
str_atbash_encrypted=cp.atbash_encrypt(plain_text="THISISNOTVERYSECRETATALL")
# Ceaser
str_ceaser_decrypted=cp.ceaser_decrypt(cipher_text="MTBVZNHPQDINIDTZGWJFPYMNX",
shift=5)
str_ceaser_encrypted=cp.ceaser_encrypt(plain_text="HOWQUICKLYDIDYOUBREAKTHIS",
shift=5)
# Vigenere
str_ceaser_decrypted=cp.vigenere_decrypt(cipher_text="YDXGJHCJVODXUGGZ",
keyword="NIGHTTIME",
permutation="thislepgywnomarkdbfcjquvxz")
str_ceaser_encrypted=cp.vigenere_encrypt(plain_text="VISABILITYISPOOR",
keyword="NIGHTTIME",
permutation="thislepgywnomarkdbfcjquvxz")
# Playfair
str_playfair_decrypted=cp.playfair_decrypt(cipher_text="GIVHYCHGSYPCFHWHGDHPUTSMYTLD",
keyword="GLAMORGAN")
str_playfair_decrypted=cp.playfair_encrypt(plain_text="MEETMEATTREFFORESTSTATION",
keyword="GLAMORGAN")
print(string)
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
cryptology-0.0.14.tar.gz
(11.6 kB
view details)
File details
Details for the file cryptology-0.0.14.tar.gz
.
File metadata
- Download URL: cryptology-0.0.14.tar.gz
- Upload date:
- Size: 11.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e488fc28ddd672628d0aef25d1012b13038adc67d0c96e86d4353f6d66c65a8 |
|
MD5 | 38ad3ea9dbcbee8673a347f40fe47475 |
|
BLAKE2b-256 | 9e916514e37f1125b044aba502ce556d56c8e9d1a7eaaec8b2a5c09e89a5d37a |