pdat-aes-encryptor


Namepdat-aes-encryptor JSON
Version 0.3.0 PyPI version JSON
download
home_pageNone
SummaryAES Encryptor
upload_time2024-10-20 07:35:38
maintainerNone
docs_urlNone
authorPavel Dat
requires_python<4.0,>=3.10
licenseMIT
keywords aes encryptor
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ## 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 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:
```python
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}")
```


            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "pdat-aes-encryptor",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.10",
    "maintainer_email": null,
    "keywords": "aes, encryptor",
    "author": "Pavel Dat",
    "author_email": "dats.pavel1999@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/25/50/2388484a82d44bd2b6f77a96776ed34b92c69949b90677db45ad31ffb360/pdat_aes_encryptor-0.3.0.tar.gz",
    "platform": null,
    "description": "## AES Encryptor/Decryptor\n### Description\nThis 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.\n\n\n### Installation\nTo use this project, you need to install the required dependencies. You can do this using poetry:\n```sh\npip install pdat-aes-encryptor\n```\n\nor \n\n```sh\npoetry add pdat-aes-encryptor\n```\n\n### Usage\n#### Encryption\nTo encrypt text, use the encrypt_aes method:\n```python\nfrom pdat_aes_encryptor.aes_encryptor import AESEncryptor\n\nkey = \"your_secret_key_here\"  # Ensure the key length is 16, 24, or 32 characters\nplain_text = \"Hello, World!\"\nencrypted_text = AESEncryptor.encrypt_aes(plain_text, key)\nprint(f\"Encrypted text: {encrypted_text}\")\n```\n\n#### Decryption\nTo decrypt text, use the decrypt_aes method:\n```python\nfrom pdat_aes_encryptor.aes_encryptor import AESEncryptor\n\nkey = \"your_secret_key_here\"  # Ensure the key length is 16, 24, or 32 characters\ncipher_text = b'\\xbb\\x08\\x80\\xc3\\r\\\\V\\xa8D\\x1f\\x82$\\xf6\\xca8\\xe0 \\xa1>\\x8c\\x9fj+{\\xb5\\xcf\\xf7\\xa8\\xf7\\x85O\\xf4'\ndecrypted_text = AESEncryptor.decrypt_aes(cipher_text, key)\nprint(f\"Decrypted text: {decrypted_text}\")\n```\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "AES Encryptor",
    "version": "0.3.0",
    "project_urls": null,
    "split_keywords": [
        "aes",
        " encryptor"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f5ed4a2b53e1bfb3bc5c4581d05a47f743a8a51c6901efa128ec8f4cf0fb9735",
                "md5": "9b0f41dceea0fa8e5419cdf9fb3eed16",
                "sha256": "e1086655cf54c9fb7fa86ccb1c620bfe0dcb588c6bd3be0de7ccd95a22c45400"
            },
            "downloads": -1,
            "filename": "pdat_aes_encryptor-0.3.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "9b0f41dceea0fa8e5419cdf9fb3eed16",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.10",
            "size": 3307,
            "upload_time": "2024-10-20T07:35:36",
            "upload_time_iso_8601": "2024-10-20T07:35:36.775852Z",
            "url": "https://files.pythonhosted.org/packages/f5/ed/4a2b53e1bfb3bc5c4581d05a47f743a8a51c6901efa128ec8f4cf0fb9735/pdat_aes_encryptor-0.3.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "25502388484a82d44bd2b6f77a96776ed34b92c69949b90677db45ad31ffb360",
                "md5": "0cdfa37d833435337b5d90f10964590a",
                "sha256": "81fa7fbc55c6e3ecc5db4416cd27a5285f7b65a78e23198a0268b104e1400f2f"
            },
            "downloads": -1,
            "filename": "pdat_aes_encryptor-0.3.0.tar.gz",
            "has_sig": false,
            "md5_digest": "0cdfa37d833435337b5d90f10964590a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.10",
            "size": 2852,
            "upload_time": "2024-10-20T07:35:38",
            "upload_time_iso_8601": "2024-10-20T07:35:38.023250Z",
            "url": "https://files.pythonhosted.org/packages/25/50/2388484a82d44bd2b6f77a96776ed34b92c69949b90677db45ad31ffb360/pdat_aes_encryptor-0.3.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-20 07:35:38",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "pdat-aes-encryptor"
}
        
Elapsed time: 0.37614s