Your message
Diners
Who speaks?
Who sent it? Tap a plate, or pick here:
A ring of diners, a secret coin between each pair of neighbours, and one message. Everyone at the table can read it. Nobody can work out who sent it.
Diners
Who speaks?
Who sent it? Tap a plate, or pick here:
| Play a round and every diner's announcement shows up here, eight dots to a byte. |
Pick two who show each other their secrets after the round.
Everyone opens this page on their own phone. Your group chat is the table: this page makes lines you paste there, and reads the lines your friends paste back. No server sees a thing.
Everyone gets a say, and nobody talks over anybody: you swap keys, draw slots in secret (one line each per phase, usually two to five phases), then everyone's words go round at once, each in their own slot.
Sit in every chair at once, with a pretend group chat beside you, and run the rounds by hand.
Whoever set the table posts this line in the group chat.
Which one are you?
Run each seat by hand, or press Every chair: next step to post every line that's ready, then again to read the chat.
Everyone in the chat can read every line, and that's fine: each one is noise until they're all added up. Everyone posts a line every round, even with nothing to say, and this page never makes two lines for one round. The only way to unmask someone is for both of their neighbours to compare secrets.
Speaking order. Now everyone wants their say, one after another, and nobody may learn who speaks when. So each diner draws a number in secret, and the table tries every number out loud.
Diners
Once everyone has a slot of their own, you write what to send in it.
What everyone sends in their slot
Each diner makes a brand-new key and publishes it in their own slot: a name nobody can trace back.
If what comes back is exactly what you put in, the slot is yours. If it's garbage, you clashed, and nobody learns who clashed.
The table here goes round once per slot so you can watch. Real DC-nets run all the slots of a phase side by side as one wide round, so the phases are the real cost. And they stay few: each phase, about 37% of the diners still waiting land alone (1 in e), so the rounds grow like N (a bit over 2 per diner, creeping towards e ≈ 2.7) while the phases only grow like the log of N. 8 diners average 19 rounds in 4.4 phases; 60 diners, 158 rounds in 8.5.
The weak spot: one diner can jam every slot on purpose by putting garbage in, and the maths can't say who. Real DC-nets add traps to catch them.
The classic story, by David Chaum (1988): three cryptographers finish dinner and the waiter says the bill has been paid. Either one of them paid, or someone else did. They want to know which, without exposing the one who paid.
Every pair of neighbours flips a coin that only the two of them can see. Each diner then says one thing out loud: whether their two coins match. The one who paid says the opposite. Add up all the answers with XOR (1 + 1 = 0) and every coin is counted exactly twice, once by each person who saw it, so all the coins cancel. What's left is the payer's flipped bit: someone paid, and the maths can't point at who.
Here every "coin" is 32 random bytes from your browser's crypto instead of one bit, so a diner can slip in a whole message. Each announcement looks like noise; the sum is the message. Peek under the napkins to see the secrets and watch them cancel.
Two people speaking in the same round get their messages XORed together into garbage, which is why real DC-nets take turns or reserve slots first. Two neighbours who gang up and compare coins can unmask the person sitting between them; the more diners, the harder that gets.
Take turns shows one way to share out the slots: everyone draws a number in secret, the table tries each number, and whoever clashed draws again until everyone has a slot of their own.
With friends there are no real napkins, only a group chat everyone can read. So each of you posts the public half of a key, and each pair of neighbours combines it with their own secret half (ECDH) to land on the same secret without ever saying it. That secret is stretched into fresh coins for every round (HKDF). Then the table shares out slots the Take turns way, except that all the slots of a phase travel in one wide line, so a phase costs each of you one post and one paste. Once every slot is taken, everyone's words go round in one last wide line, each in their own slot, and nothing collides.
Next door: the Dining Philosophers, who can't share forks without freezing.
build v1.5 · 2026-11-02