Skip to main content

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


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)

Uploaded Source

Built Distribution

zscryptography-0.2.1-py3-none-any.whl (2.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page