New answers tagged exchange
First, 512 bits is a completely inadequate key size. Use 2048. Second, the Diffie-Hellman parameters are public information. Any sensible cryptographic library would include default parameters -- probably from RFC 3526. [Edit: Even if your library doesn't include them, you can still use RFC 3526 parameters if you convert them to its input format.] If you ...
Top 50 recent answers are included