A simple cryptography library using AES and PKCS7 padding
Project description
pycryptography
A simple encryption library using AES and PKCS7 padding.
Installation
pip install pycryptography
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.1.tar.gz
(2.1 kB
view hashes)
Built Distribution
Close
Hashes for zscryptography-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79b0a092b18029004a3c7da7363811f58be59b9c70aecc708434bf9f9ade1db9 |
|
MD5 | de79a4e3ada63b4e9e6ca9918d3151b7 |
|
BLAKE2b-256 | 3cc544101a5fdc606b09080715bf93d61e90b689b0c02de79e98963932b6ada2 |