Metadata-Version: 2.1
Name: pdat-aes-encryptor
Version: 0.2.0
Summary: AES Encryptor
License: MIT
Keywords: aes,encryptor
Author: Pavel Dat
Author-email: dats.pavel1999@gmail.com
Requires-Python: >=3.10,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Dist: cryptography (>=43.0.1,<44.0.0)
Requires-Dist: loguru (>=0.7.2,<0.8.0)
Description-Content-Type: text/markdown

## 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:
```sh
pip install pdat-aes-encryptor
```

or 

```sh
poetry add pdat-aes-encryptor
```

### Usage
#### Encryption
To encrypt text, use the encrypt_aes method:
```python
from 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:
```python
from 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}")
```

