Metadata-Version: 2.1
Name: pyDH
Version: 0.1.6
Summary: Pure Python Implementation of Diffie-Hellman Key Exchange
Home-page: https://github.com/amiralis/pyDH
Author: Amirali Sanatinia
Author-email: amirali@ccs.neu.edu
License: Apache
Description: ![Python package](https://github.com/amiralis/pyDH/workflows/Python%20package/badge.svg)
        
        pyDH
        ====
        
        Pure Python Implementation of Diffie-Hellman Key Exchange. Py2, Py3, PyPy compatible.
        
        
        Example
        -------
        
        To use as a library:
        
        ```python
        import pyDH
        d1 = pyDH.DiffieHellman()
        d2 = pyDH.DiffieHellman()
        d1_pubkey = d1.gen_public_key()
        d2_pubkey = d2.gen_public_key()
        d1_sharedkey = d1.gen_shared_key(d2_pubkey)
        d2_sharedkey = d2.gen_shared_key(d1_pubkey)
        d1_sharedkey == d2_sharedkey
         ```
        
        By default it uses the group 14 (2048 bit). To use another group (e.g., 15):
        
        ```python
        d1 = pyDH.DiffieHellman(15) #or pyDH.DiffieHellman(group=15)
        ```
        
        Installation
        ------------
        
        To install pyDH, simply:
        
        ```bash
        $ pip install pyDH
        ```
        
Keywords: crypto,Diffie Hellman,Key Exchange
Platform: UNKNOWN
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.2
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Topic :: Security :: Cryptography
Description-Content-Type: text/markdown
