explaining tech like medieval fantasy pt3
2026-06-05 · 9 min read
We left our villager mid‑triumph. Her letter had been torn into numbered slips, scattered across roads no one fully maps, confirmed page by page, and stitched whole again at a clerk's desk inside Sir Google's keep. A small miracle, repeated millions of times a second.
And every word of it traveled in plain hand. Any bandit who pulled a rider off his horse could slit the satchel, read the slip, and learn exactly what she wrote. Worse, he could copy it out in a fresh hand, change a line, reseal nothing, and send the forgery on its way. The roads work beautifully. They are also wide open. This is the problem we politely ignored, and it is time to solve it.
the locked box
The oldest answer is the obvious one. Before the villager hands her slip to a rider, she locks it in a small iron box. A bandit may steal the box, shake it, even ride off with it, but without the key the words inside are gibberish to him. At the far gate, Sir Google's clerk holds a matching key, opens the box, and reads the message clean.
This locking and unlocking is encryption. The same key locks and unlocks, so mortals call it symmetric. It is fast, it is strong, and a captured box tells the bandit nothing. There is only one trouble with it, and it is a serious one.
A locked box is only as useful as your ability to hand someone the key. And how do you send the key? By rider, down the same road crawling with the same bandits?
If she sends the key in a second satchel, the bandit simply robs that rider instead, and now he has the key to every box she will ever send. She cannot lock the key inside another box, because then she would need to send that key, and so on forever. Two strangers who have never met cannot agree on a secret by shouting it down a road full of listeners. Or so it would seem.
the secret no one spoke aloud
Here is the trick, and it is genuinely strange the first time you meet it. The villager and the clerk are going to agree on a shared secret in full view of every bandit on the road, and the bandits will not be able to work out what it is.
Picture it as dyes. They agree, out loud where anyone can hear, on a common base color: a plain yellow. No secret there. Then each of them privately picks a color of their own and tells no one. The villager stirs her private red into the yellow and gets an orange. The clerk stirs his private blue into the yellow and gets a green. They send these mixtures to each other by open rider. The bandit watching the road now holds a pot of orange and a pot of green and the plain yellow everyone started with.
Now the villager stirs her private red into the green she received. The clerk stirs his private blue into the orange he received. Both end up holding the exact same muddy brown: yellow, plus red, plus blue. They never sent that final color down the road. They never spoke it aloud. They built it, each on their own side, from one ingredient they kept and one ingredient they were given.
The bandit is stuck. To make the brown himself he would need to pull a private color back out of a mixture, and un‑mixing paint is the one thing he cannot do. This patient little ritual is the key exchange, and the real version, built from arithmetic that is easy to do forward and brutally hard to reverse, is named for the two who described it: Diffie‑Hellman. Two strangers, a road full of spies, and a shared secret that was never once carried by a rider.
the one-way padlock
The dye trick lets two parties build a secret together. But sometimes you want anyone at all, a thousand strangers you will never meet, to be able to send you a locked box, while you alone can open them.
So Sir Google has a clever locksmith forge a peculiar kind of padlock. He makes thousands of copies of the open padlock and scatters them freely, at the market, at the crossroads, to anyone who asks. Anyone can take one, snap it shut on a box, and send it. But a closed padlock cannot be reopened by the thing that closed it. Only the one iron key, which Sir Google never lets leave his keep, can open them.
The scattered open padlock is his public key. The one key he guards is his private key. Anyone may lock a message to him; only he can unlock it. This is asymmetric encryption, and it is the bootstrap that makes the rest possible: a way to send the very first secret safely, before any shared key exists, to someone you have never met.
but is it really his padlock
And here a sharp‑eyed villain steps onto the road, because we have quietly assumed the padlock she picked up really belongs to Sir Google. What if it does not?
Suppose a bandit plants himself in the middle. When the villager reaches for Sir Google's padlock, the bandit hands her his own instead, smiling, claiming it is Google's. She locks her letter, the bandit opens it with his own key, reads every word, then locks it again with the real Google padlock and passes it along. Both ends believe they are speaking privately. Both are speaking through him. This is the man in the middle, and secrecy alone does no good against it. A perfectly locked box is worthless if you handed your key to the wrong man.
the seal-keeper who vouches
What the villager is missing is not secrecy. It is identity. She needs to know the padlock in her hand is truly his.
So the kingdom appoints a handful of deeply trusted seal‑keepers, old houses everyone already agrees to believe. When Sir Google forges his padlocks, he brings one to a seal‑keeper, proves he is who he claims, and the seal‑keeper stamps the padlock with a wax seal that cannot be counterfeited: "This lock belongs to Sir Google. I, the seal‑keeper, vouch for it." This sealed declaration is a certificate, and the seal‑keepers are the certificate authorities.
Now when the villager picks up a padlock, she checks the wax. If it carries a seal from a keeper she trusts, and the seal names Sir Google, she proceeds. If the bandit hands her his own padlock, it carries no such seal, or a seal in a name that is not Google's, and she throws it in the mud. The reason your browser knows the difference is that it was born already trusting a small list of these seal‑keepers, carried quietly inside it, against which every wax stamp is checked.
Secrecy keeps the bandit from reading the letter. The seal keeps him from pretending to be the recipient. You need both, or you have neither.
putting on the seal
Watch the whole ceremony run, in the half‑second before her real message moves. The villager rides up and asks for Sir Google's padlock. He sends it, wrapped in its sealed certificate. She inspects the wax, finds a seal‑keeper she trusts, and believes the lock is genuine. Then, under cover of that trusted lock, the two of them run the dye ritual and quietly arrive at one shared secret key, known to no rider and no bandit.
From that breath onward they stop using the slow padlocks entirely. They switch to the fast iron box from the very start, both holding the same freshly agreed key, locking and unlocking at speed. The expensive magic happens once, at the handshake, only to smuggle a single shared key into existence. Everything after is the quick symmetric box, slammed shut on every page.
This entire arrangement, the sealed identity, the secret agreed in the open, the switch to a shared key, is TLS, Transport Layer Security. When it wraps the ordinary letters of the web, the plain courier we called HTTP becomes HTTPS, and your browser draws a small padlock beside the name to tell you the box is locked and the seal checked out.
a closing note
So the little padlock in your address bar is not decoration. It is the quiet end of a long argument the road was always going to have. A captured rider learns nothing, because the box is locked. A planted padlock is caught, because the wax is checked. A secret crosses a kingdom of spies without ever being spoken, because two strangers mixed their dyes and only they could finish the color.
Three offices, then, from name to sealed word. The Registry told her where the keep stood. The couriers carried her letter there in pieces and made it whole. And the seal‑keepers and the locked box let her say something no one else could read or forge. That is the whole journey, every time you go anywhere at all: a kingdom of small bureaucracies, doing in milliseconds what would once have taken a season of riders, and asking nothing of you but the typing of a name.
And yet, for all of that, her letter has only just reached the gate. We have spent three parts getting a sealed word safely to Sir Google's doorstep and never once asked what becomes of it inside. Someone has to read it, decide what she actually wants, and decide whether to grant it. A keep that great does not have one man at one desk, either. It has a hundred identical halls and a steward at the threshold choosing which one will hear her.
Next time: the shapes a request can take, the curt replies a gatekeeper gives when the answer is no, and the steward who waves each caller toward whichever hall happens to be free.
e.