Securely establishing shared secrets over insecure channels
🎯 Challenge
💡 Story
🎮 Sandbox
📚 Deep Dive
✅ Quiz
▶️ Simulate
🐛 Debug
The Impossible Problem That Made the Internet Possible
How do two strangers create a shared secret while being watched?
Every HTTPS connection, every encrypted message, every secure transaction starts with this seemingly impossible challenge. The solution is pure mathematical magic.
The Key Distribution Problem
Alice and Bob want to communicate securely. They need a shared encryption key. But they've never met, and Eve is watching their entire conversation. How can they create a secret that Eve can't figure out?
👩
Alice
Wants to send secret
🔑❓
How to share the key?
Public channel (internet)
Eve is watching!
👁️
👨
Bob
Wants to receive secret
This problem stumped cryptographers for decades. If Alice sends the key to Bob, Eve intercepts it. If Bob sends the key to Alice, same problem. It seems impossible to create a shared secret when someone is watching everything!