Math · Intermediate · Lesson 4 of 7
Sharing a Secret in Public
Diffie–Hellman key exchange
An interactive lesson with 7 steps, about 6 minutes: you predict, drag and solve, with instant feedback on every answer. It runs in your browser and needs JavaScript.
What you’ll learn
- Diffie–Hellman lets two people agree on a secret over a public channel.
- Each sends ; both compute .
- Security rests on the difficulty of the discrete logarithm.
Steps
- Mixing paint
- With numbers
- Alice’s message
- Eve tries brute force
- Bob’s public number
- Times versus powers
- The shared secret