Public-Key Cryptography Diffie–Hellman key exchange Diffie–Hellman key exchange is a method of securely exchanging cryptographic keys over a public channel.