Observed since 20 Oct, 20:51 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
A simple AES encryption and decryption module
A Python package for AES (Advanced Encryption Standard) encryption and decryption, supporting AES-128, AES-192, and AES-256 bit encryption. This package is designed with a modular structure to make it easy to integrate into your projects and extend for custom requirements.
State, Word, and Byte are reusable, simplifying extension or adaptation.Install the package using pip:
pip install aes_package
This package provides functions to perform encryption and decryption easily. Below are some usage examples:
from aes_module import aes_128_encrypt
# Define your message and key
message = "This is a secret message"
key = "mysecurekey12345" # Must match the required key length
# Encrypt the message
encrypted_message = aes_128_encrypt(message, key)
print("Encrypted:", encrypted_message)
from aes_module import aes_128_decrypt
# Decrypt the message
decrypted_message = aes_128_decrypt(encrypted_message, key)
print("Decrypted:", decrypted_message)
The following functions are provided in the package:
aes_128_encrypt(message, key): Encrypt a message using AES-128.aes_192_encrypt(message, key): Encrypt a message using AES-192.aes_256_encrypt(message, key): Encrypt a message using AES-256.aes_128_decrypt(message, key): Decrypt a message encrypted with AES-128.aes_192_decrypt(message, key): Decrypt a message encrypted with AES-192.aes_256_decrypt(message, key): Decrypt a message encrypted with AES-256.This package includes test cases to ensure reliability. You can run the tests using pytest:
Install pytest if not already installed:
pip install pytest
Run the tests:
pytest tests/
AES is a symmetric block cipher widely used in modern encryption. It works by processing data in fixed-size blocks (128 bits) and applying multiple rounds of substitutions, permutations, and mathematical transformations.
We welcome contributions to improve the package! To contribute:
git checkout -b feature-name
This project is licensed under the MIT License. See the LICENSE file for details.
Special thanks to all contributors and the cryptography community for their continued development of secure encryption standards.
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.2 | 18 Dec 2024 | 1 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 20:51 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:0cad236868ec6634463cb8e0c211c1712b6b3c3a63e785fa0a24751fe514bdee