Diffie–Hellman in Five Steps
See how two strangers agree on a shared secret across an open channel.
The Diffie–Hellman exchange uses exponentiation modulo a prime to create a shared secret. Anyone listening can see the public parameters, but only the participants know their random exponents. Step through the exchange to observe how the shared key emerges simultaneously for Alice and Bob.