Metadata-Version: 2.1
Name: hybrid-rsa-aes
Version: 0.2.2
Summary: Helper for hybrid AES-RSA encryption
Home-page: https://github.com/bigbag/hybrid-rsa-aes
Author: Pavel Liashkov
Author-email: pavel.liashkov@protonmail.com
Maintainer: Pavel Liashkov
Maintainer-email: pavel.liashkov@protonmail.com
License: Apache License, Version 2.0
Download-URL: https://pypi.python.org/pypi/hybrid-rsa-aes
Description: # 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)
        [![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/sqlalchemy-state-machine/security/policy).
Platform: POSIX
Classifier: Development Status :: 5 - Production/Stable
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Operating System :: POSIX
Classifier: Topic :: Software Development
Classifier: Topic :: Software Development :: Libraries
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Requires-Python: >=3.7
Description-Content-Type: text/markdown
