Experiments / live

Diffie–Hellman playground

Alice and Bob agree on a secret number while you read every message they exchange. Pick a prime size, run an exchange, and watch it play out step by step — the secrets stay locked until you peek. Then scroll down and try to steal one. The full story — with the math — is in the essay.