hybrid-rsa-aes


Namehybrid-rsa-aes JSON
Version 0.4.0 PyPI version JSON
download
home_pagehttps://github.com/bigbag/hybrid-rsa-aes
SummaryHelper for hybrid AES-RSA encryption
upload_time2023-08-03 11:53:06
maintainerPavel Liashkov
docs_urlNone
authorPavel Liashkov
requires_python>=3.7
licenseApache License, Version 2.0
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage
            # hybrid-rsa-aes

[![CI](https://github.com/bigbag/hybrid-rsa-aes/workflows/CI/badge.svg)](https://github.com/bigbag/hybrid-rsa-aes/actions?query=workflow%3ACI)
[![codecov](https://codecov.io/gh/bigbag/hybrid-rsa-aes/branch/main/graph/badge.svg)](https://codecov.io/gh/bigbag/hybrid-rsa-aes)
[![pypi](https://img.shields.io/pypi/v/hybrid-rsa-aes.svg)](https://pypi.python.org/pypi/hybrid-rsa-aes)
[![downloads](https://img.shields.io/pypi/dm/hybrid-rsa-aes.svg)](https://pypistats.org/packages/hybrid-rsa-aes)
[![versions](https://img.shields.io/pypi/pyversions/hybrid-rsa-aes.svg)](https://github.com/bigbag/hybrid-rsa-aes)
[![license](https://img.shields.io/github/license/bigbag/hybrid-rsa-aes.svg)](https://github.com/bigbag/hybrid-rsa-aes/blob/master/LICENSE)


**hybrid-rsa-aes** is a helper for hybrid AES-RSA encryption.


## Installation

hybrid-rsa-aes is available on PyPI.
Use pip to install:

    $ pip install hybrid-rsa-aes

## Basic Usage

```py
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives.asymmetric import rsa

from hybrid_rsa_aes import HybridCipher

rsa_private_key = rsa.generate_private_key(
    public_exponent=65537, key_size=2048, backend=default_backend()
)
rsa_public_key = rsa_private_key.public_key()

encrypt_message = HybridCipher().encrypt(rsa_public_key=rsa_public_key, data={"test": "demo"})

decrypt_message = HybridCipher().decrypt(
    rsa_private_key=rsa_private_key, cipher_text=encrypt_message
)
assert "test" in decrypt_message and decrypt_message["test"] == "demo"
```

## License

hybrid-rsa-aes is developed and distributed under the Apache 2.0 license.

## Reporting a Security Vulnerability

See our [security policy](https://github.com/bigbag/hybrid-rsa-aes/security/policy).

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/bigbag/hybrid-rsa-aes",
    "name": "hybrid-rsa-aes",
    "maintainer": "Pavel Liashkov",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "pavel.liashkov@protonmail.com",
    "keywords": "",
    "author": "Pavel Liashkov",
    "author_email": "pavel.liashkov@protonmail.com",
    "download_url": "https://files.pythonhosted.org/packages/49/28/7b67dd4d7dfed6fd1db7efde5b0404efc43db493708ceff461a55851382c/hybrid-rsa-aes-0.4.0.tar.gz",
    "platform": "POSIX",
    "description": "# hybrid-rsa-aes\n\n[![CI](https://github.com/bigbag/hybrid-rsa-aes/workflows/CI/badge.svg)](https://github.com/bigbag/hybrid-rsa-aes/actions?query=workflow%3ACI)\n[![codecov](https://codecov.io/gh/bigbag/hybrid-rsa-aes/branch/main/graph/badge.svg)](https://codecov.io/gh/bigbag/hybrid-rsa-aes)\n[![pypi](https://img.shields.io/pypi/v/hybrid-rsa-aes.svg)](https://pypi.python.org/pypi/hybrid-rsa-aes)\n[![downloads](https://img.shields.io/pypi/dm/hybrid-rsa-aes.svg)](https://pypistats.org/packages/hybrid-rsa-aes)\n[![versions](https://img.shields.io/pypi/pyversions/hybrid-rsa-aes.svg)](https://github.com/bigbag/hybrid-rsa-aes)\n[![license](https://img.shields.io/github/license/bigbag/hybrid-rsa-aes.svg)](https://github.com/bigbag/hybrid-rsa-aes/blob/master/LICENSE)\n\n\n**hybrid-rsa-aes** is a helper for hybrid AES-RSA encryption.\n\n\n## Installation\n\nhybrid-rsa-aes is available on PyPI.\nUse pip to install:\n\n    $ pip install hybrid-rsa-aes\n\n## Basic Usage\n\n```py\nfrom cryptography.hazmat.backends import default_backend\nfrom cryptography.hazmat.primitives.asymmetric import rsa\n\nfrom hybrid_rsa_aes import HybridCipher\n\nrsa_private_key = rsa.generate_private_key(\n    public_exponent=65537, key_size=2048, backend=default_backend()\n)\nrsa_public_key = rsa_private_key.public_key()\n\nencrypt_message = HybridCipher().encrypt(rsa_public_key=rsa_public_key, data={\"test\": \"demo\"})\n\ndecrypt_message = HybridCipher().decrypt(\n    rsa_private_key=rsa_private_key, cipher_text=encrypt_message\n)\nassert \"test\" in decrypt_message and decrypt_message[\"test\"] == \"demo\"\n```\n\n## License\n\nhybrid-rsa-aes is developed and distributed under the Apache 2.0 license.\n\n## Reporting a Security Vulnerability\n\nSee our [security policy](https://github.com/bigbag/hybrid-rsa-aes/security/policy).\n",
    "bugtrack_url": null,
    "license": "Apache License, Version 2.0",
    "summary": "Helper for hybrid AES-RSA encryption",
    "version": "0.4.0",
    "project_urls": {
        "Download": "https://pypi.python.org/pypi/hybrid-rsa-aes",
        "Homepage": "https://github.com/bigbag/hybrid-rsa-aes"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "de2bb7e8ba7e3e38951ad938b3815a71a20c08e479c139890bc4ec7eee61c4c1",
                "md5": "cf7bffd2c7c315ffccb9010e19c886fd",
                "sha256": "925a39a08396668894a47179891dff4a1a2fc7932fb56381d27927a08737cc9a"
            },
            "downloads": -1,
            "filename": "hybrid_rsa_aes-0.4.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "cf7bffd2c7c315ffccb9010e19c886fd",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 8190,
            "upload_time": "2023-08-03T11:53:04",
            "upload_time_iso_8601": "2023-08-03T11:53:04.938701Z",
            "url": "https://files.pythonhosted.org/packages/de/2b/b7e8ba7e3e38951ad938b3815a71a20c08e479c139890bc4ec7eee61c4c1/hybrid_rsa_aes-0.4.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "49287b67dd4d7dfed6fd1db7efde5b0404efc43db493708ceff461a55851382c",
                "md5": "fc89ef4ca94083d2806586d1c97c2bbe",
                "sha256": "a973e0a6352661f8dbb88fa738b1f46c8989eb9d60469cb827f1ab5c5275a20b"
            },
            "downloads": -1,
            "filename": "hybrid-rsa-aes-0.4.0.tar.gz",
            "has_sig": false,
            "md5_digest": "fc89ef4ca94083d2806586d1c97c2bbe",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 7585,
            "upload_time": "2023-08-03T11:53:06",
            "upload_time_iso_8601": "2023-08-03T11:53:06.003719Z",
            "url": "https://files.pythonhosted.org/packages/49/28/7b67dd4d7dfed6fd1db7efde5b0404efc43db493708ceff461a55851382c/hybrid-rsa-aes-0.4.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-08-03 11:53:06",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "bigbag",
    "github_project": "hybrid-rsa-aes",
    "travis_ci": false,
    "coveralls": true,
    "github_actions": true,
    "lcname": "hybrid-rsa-aes"
}
        
Elapsed time: 0.09893s