A simple cryptography library using AES and PKCS7 padding
Project description
zscryptography
A simple encryption library using AES and PKCS7 padding.
Installation
pip install zscryptography
Usage
from zscryptography import encrypt, decrypt
# Define your key and plaintext
key = "thisisaverysecretkey123456789012"
plain_text = "Hello, World!"
# Encrypt the plaintext
encrypted_text = encrypt(plain_text, key)
print(f"Encrypted: {encrypted_text}")
# Decrypt the ciphertext
decrypted_text = decrypt(encrypted_text, key)
print(f"Decrypted: {decrypted_text}")
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
zscryptography-0.2.1.tar.gz
(2.1 kB
view hashes)
Built Distribution
Close
Hashes for zscryptography-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dacf227725865a8f8897d4fc6b6f5dd6fead6bab7b009a87109c08c643c4ffa3 |
|
MD5 | 38b1e3eefd444a5e8497a526b0b2086a |
|
BLAKE2b-256 | 923d35db7c811df9a009344760e6ca1bfc0016d92a9d14a331639128b563bd01 |