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
```xml
from cryptography 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.0.tar.gz
(2.0 kB
view hashes)
Built Distribution
Close
Hashes for zscryptography-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b5e544e590a5a5da74db09b9b39875daf3329bd82cc8d926f35c2aae35fb6b8d |
|
MD5 | 2b65fdc6ecf672664b1c94eb27e74e10 |
|
BLAKE2b-256 | 87e3eaf8e0c585531f762118e962397d28fb5744bc36dddcfd586ead11eaa0f0 |