Diffie-Hellman key exchange example in python
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Andrey Arapov 1ab331ae9a first commit 4 years ago
README.md first commit 4 years ago
dhtest-run.png first commit 4 years ago
dhtest.py first commit 4 years ago

README.md

Diffie-Hellman key exchange example in python

You can use as reference OpenSSL’s dhparam module that can produce following output, e.g.

openssl dhparam 16 |openssl dhparam -noout -text
Generating DH parameters, 16 bit long safe prime, generator 2
This is going to take a long time
.++*++*++*++*++*++*++*++*++*++*++*++*++*++*++*++*++*++*++*++*++*++*++*++*++*++*++*
    PKCS#3 DH Parameters: (16 bit)
        prime: 61547 (0xf06b)
        generator: 2 (0x2)