Diffie-Hellman key exchange example in python
您最多能選擇 25 個主題 主題必須以字母或數字為開頭,可包含連接號「-」且最長為 35 個字元。
Andy 1ab331ae9a
first commit
10 年前
README.md first commit 10 年前
dhtest-run.png first commit 10 年前
dhtest.py first commit 10 年前

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)