Diffie Hellman A simple Diffie Hellman implementation. ! The prime generator and the other random numbers are not secure, this is for a demo only! Use openssl Wikipedia