One-time pads: the one cipher that no computer can break, a quantum one included. Meet once in person to share a pad, then send messages that stay secret for good. Pad files for two computers, or printed pads for pencil and paper.
🔒 Your pads and your messages never leave your browser.
Pad files, for two computers
Two files with the same random bytes: one for you, one for them. Each of you sends from your own half, so you never use the same part twice.
Put their copy on a USB stick and give it to them in person. Then delete it from this computer and empty the trash. Never send a pad over the internet.
A paper pad, for pencil and paper
Pages of random 5-digit groups. Print two copies, one for each of you. Odd pages are for the messages of the person who made the pad; even pages are for the other person's messages.
In the print window, ask for 2 copies. Print on a printer that is not shared over a network if you can, and don't save it as a PDF.
Your pad file
Drop your pad file here (.kpad), or click to open it
Your pad changed: the used part is burned. Save the new pad file now, in place of the old one, or the next message could use the same part again.
Write a message
Read a message
The method
To send:
Write your message in capitals. Turn each letter into digits with the table. For a number, write 98 and then the digit (7 is 987).
Fill the last group of five with 0s.
Take the next unused page that is yours (odd pages: the person who made the pad; even pages: the other person). Write its key digits under your digits.
Add each pair, without carrying: 7 + 5 = 2. That is the message to send.
Send the page ID first, then the groups. Then burn the page.
To read: find the page by its ID. Write the key under the message and subtract each pair, without borrowing: 2 − 5 = 7 (12 − 5). Turn the digits back into letters. Then burn the page.
One digit: space, A, E, I, N, O, T. Two digits (starting with 7, 8 or 9): all the others. So the digits always read back one way.
Check your work
Do it on paper, then check it here, or the other way round. Type the key groups from the page (without the page ID).
The one cipher that can't be broken
Almost all encryption today rests on maths problems that are hard: factoring big numbers, or
their elliptic-curve cousins. A large quantum computer would make those easy, and anything
recorded today could be read then. A one-time pad rests on nothing. Each message is mixed with
truly random key material that is used once and then destroyed, so every possible message is
equally likely. There is nothing to compute, so no computer can break it, now or ever. Spies
used them through the Cold War, and number stations still read out their groups on shortwave.
How to use it
Meet once. Make a pad, and give the other copy in person: a USB stick for pad files, a printed copy for paper. The pad is the secret, so it must never go over the internet.
Pad files: open your copy on the Use a pad file tab. A message uses the next part of your half; the page then overwrites that part with zeros in your file. In Chrome and Edge it saves the file in place; elsewhere, save the new file over the old one each time. Send the message any way you like: email, chat, a printout.
Paper: follow the method card. The Check your work box does the same sums, so you can practise with it.
Pad-file messages carry a one-time tag from the pad (Poly1305), so a message changed on the way is refused, not read wrong.
Honest limitations — read this before you rely on it
Never use any part twice. Two messages on the same part of a pad give both away. Pad files burn what they use; burn paper pages after use. If you restore an old copy of a pad file, you can reuse parts by mistake.
The pad is only as safe as where you keep it. Anyone who copies it reads everything. Delete spare copies, and keep the file off cloud folders.
Your computer must be clean. Malware on either computer sees the message before it's encrypted. No cipher helps with that; paper does.
Pads run out. Each message uses as many bytes of pad as it has, plus 32. When your half is used up, meet again.
Where the randomness comes from. The pads come from your browser's cryptographic random generator (crypto.getRandomValues), which is seeded by your operating system. Purists roll ten-sided dice for paper pads; the method is the same.
Paper has no tamper check. A changed digit changes a letter. Read paper messages with care, and agree on a check word if it matters.
The message length shows, unless you round it up (pad files do by default).
Same shelf:Lock Box encrypts a file with a password · Hush hides a message inside a picture · Key Cutter cuts a strong passphrase.
Part of K-Engine Local Tools — free, privacy-respecting utilities that run
on your device. The pad maker, the XOR and Poly1305 code, and the paper method are hand-written;
view-source and you're reading them. MIT licensed, from the
K-Engine workshop ·
download the source.