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 encryption import encrypt, decrypt
# Define your key and plaintext
key = "thisisaverysecretkey1234"
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.1.5.tar.gz
(2.0 kB
view hashes)
Built Distribution
Close
Hashes for zscryptography-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bdbf630bec2cf2af24cb15d9f70e3d567ac934717eecae7bcb810b3f73fb58e6 |
|
MD5 | 6b20bb76875a9710b2b82e1e1006d3a8 |
|
BLAKE2b-256 | 3f87523c4ab8568b508f0fcca2b1f4d30038bafdd4281232a47e4f158596b0f0 |