4

Is there a standard library for python that implements Diffie-Hellman? I've taken a look at openssl wrapper in python pyopenssl and it doesn't cover it. I could not find it in NaCl or cryptography.io library either.

Bruno Rohée
  • 3,436
  • 27
  • 32

2 Answers2

6

I have been looking for this as well. As far as I know, No, there are no standard libraries at this time.

Though you can refer to this post for a simple implementation.

Or this github page for a more developed poc

Edit: There appears to be a library for Diffie-Hellman now.

  • 1
    amazing, finally. I actually wrote my own wrapper around openssl to get around the problem. It was not that hard, I just wrote a server on a system socket pair that backed the openssl BIO. –  Nov 10 '17 at 19:28
0

another library, seems more up-to-date https://pypi.org/project/pyDH/ with latest commit in 2019