AlgoPlus//networking / diffie-hellman
Read the theory

Diffie-Hellman Key Exchange

Agree on a shared secret over a public channel — without ever sending it.

Shared secret
Legend
Alice
Bob
Public value
AI Tutor Workspace
In a nutshell
Two parties agree on a shared secret over an open channel without ever sending it. They fix public numbers, each picks a private one, swap publicly mixed values, then fold in their own secret again. Both arrive at the same secret; an eavesdropper, seeing only the public pieces, can't reverse it.
Ready
Press play to begin the cinematic walkthrough.
Mixing paint, with numbers: you both start from a public colour, stir in a private one, swap mixtures, then stir in your private again. You land on the same blend an eavesdropper can't un-mix.
Key terms
Go deeper in the lesson
Read the full theory, intuition & complexity for Diffie-Hellman Key Exchange.