Labs / Computer Science

Diffie-Hellman Exchange

Alice and Bob each keep a private key secret, yet they can agree on the same shared number by sending only public values across an open wire. Set their private keys, pick a prime and generator, and step through the exchange — then look at what the eavesdropper is stuck with.

stage secretA 8B 19Alice s Bob s match

What to try