AES Encryptor/Decryptor
Description
This project provides a class AESEncryptor for encrypting and decrypting text using the AES (Advanced Encryption Standard) algorithm. The class includes methods for both encryption and decryption, ensuring secure data transmission.
Installation
To use this project, you need to install the required dependencies. You can do this using poetry:
pip install pdat-aes-encryptor
or
poetry add pdat-aes-encryptor
Usage
Encryption
To encrypt text, use the encrypt_aes method:
from pdat_aes_encryptor.aes_encryptor import AESEncryptor
key = "your_secret_key_here" # Ensure the key length is 16, 24, or 32 characters
plain_text = "Hello, World!"
encrypted_text = AESEncryptor.encrypt_aes(plain_text, key)
print(f"Encrypted text: {encrypted_text}")
Decryption
To decrypt text, use the decrypt_aes method:
from pdat_aes_encryptor.aes_encryptor import AESEncryptor
key = "your_secret_key_here" # Ensure the key length is 16, 24, or 32 characters
cipher_text = b'\xbb\x08\x80\xc3\r\\V\xa8D\x1f\x82$\xf6\xca8\xe0 \xa1>\x8c\x9fj+{\xb5\xcf\xf7\xa8\xf7\x85O\xf4'
decrypted_text = AESEncryptor.decrypt_aes(cipher_text, key)
print(f"Decrypted text: {decrypted_text}")
Metadata
Release files for pdat-aes-encryptor 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pdat_aes_encryptor-0.3.0.tar.gz | 2.9 kB | Without provenance | Details for pdat_aes_encryptor-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pdat_aes_encryptor-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for pdat_aes_encryptor-0.3.0-py3-none-any.whl |
Total release size: 6.2 kB
Release files / pdat_aes_encryptor-0.3.0.tar.gz
| Download URL | pdat_aes_encryptor-0.3.0.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
81fa7fbc55c6e3ecc5db4416cd27a5285f7b65a78e23198a0268b104e1400f2f
|
|
BLAKE2b-256 checksum How to use checksums |
25502388484a82d44bd2b6f77a96776ed34b92c69949b90677db45ad31ffb360
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Release files / pdat_aes_encryptor-0.3.0-py3-none-any.whl
| Download URL | pdat_aes_encryptor-0.3.0-py3-none-any.whl |
|---|---|
| Size | 3.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e1086655cf54c9fb7fa86ccb1c620bfe0dcb588c6bd3be0de7ccd95a22c45400
|
|
BLAKE2b-256 checksum How to use checksums |
f5ed4a2b53e1bfb3bc5c4581d05a47f743a8a51c6901efa128ec8f4cf0fb9735
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Security for pdat-aes-encryptor 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.