Diffie-Hellman is a Public Key Cryptography algorithm that allows secure exchange of cryptographic keys between two parties. It was invented by Whitfield Diffie and Martin Hellman in 1976. Diffie-Hellman does not provide encryption on its own, but it allows the two parties to agree on a shared secret key that can be used for symmetric encryption.