Zero-Knowledge Proofs — Explain Like I'm 5
The Magic Cave
Imagine a cave shaped like a ring. There’s one entrance, and inside, the cave splits into two paths — left and right — that meet at a locked door in the middle.
You have the key to that door. You want to prove it to your friend without showing them the key.
Here’s the game: your friend waits outside. You go in and pick a path — left or right, secretly. Your friend walks to the entrance and shouts “come out the LEFT side!” or “come out the RIGHT side!” randomly.
If you have the key, you can always come out the right side — just unlock the door and cross over if you picked the wrong path. If you’re faking it with no key, you only have a 50/50 chance of guessing right.
Do this 20 times. Each time, there’s a 50% chance you’d get caught if you were lying. After 20 rounds, the chance you’re faking is less than 1 in a million.
Your friend now believes you have the key. But they never saw it. They know nothing about the key itself.
That’s a zero-knowledge proof.
Why Does This Matter?
Right now, when you prove something online — your age, your bank balance, your location — you usually have to share the whole thing. Show your passport. Send your bank statement. Give your address.
Zero-knowledge proofs let you say “I’m over 18” without revealing your birthday. Or “I have enough money for this transaction” without showing your bank balance.
You prove the fact. You reveal nothing else.
One Thing to Remember
Zero-knowledge proofs let you convince someone something is true without giving them any information about why it’s true. You prove you know the secret — without sharing the secret.
See Also
- Ssl Tls That little padlock in your browser is doing something wild — here's the secret handshake that keeps your passwords safe from strangers on the internet.