What a running key cipher is
A running key cipher is a classical way to hide a message using a long piece of ordinary text as the key. Instead of a short keyword that repeats, the key is a whole passage, like a page from a book, and each message letter is added to the next key letter. The letters are numbers, A is 0 and Z is 25, and the sum wraps past Z back to A. So H plus W is D, because 7 plus 22 is 29, and 29 minus 26 is 3, which is D.
The idea is old: it comes from the Vigenere cipher family, but with a key that never repeats. A short keyword repeats every few letters, and that repeat is what codebreakers attack. A running key from a book has no short repeat, so the usual attacks fail, as long as the passage stays secret and the message stays shorter than it.
How to use the encoder
Type your message in the first box, using letters only. Spaces and punctuation are dropped, because the cipher works on letters. Then paste your key passage in the second box. A long passage works best: a paragraph from a novel, a page from a history book, or any long text both you and the reader can find. Press the button, or just type, and the tool shows the cipher text at once, with a line under it that shows each letter pair added together.
To read the message back, the reader needs the same passage and the same start point. They subtract each key letter from each cipher letter instead of adding. Both sides must agree on the book and the page, or the message stays unreadable.
Worked example
Take the message HELLO and the key WORLD. Add the letters as numbers: H is 7 and W is 22, so 7 plus 22 is 29, minus 26 is 3, which is D. E is 4 and O is 14, so 4 plus 14 is 18, which is S. L is 11 and R is 17, so 11 plus 17 is 28, minus 26 is 2, which is C. The second L plus L is 11 plus 11, which is 22, or W. O is 14 and D is 3, so 14 plus 3 is 17, which is R. The cipher text is DSCWR.
Take a longer pair: ATTACK with the key LEMONLE. A plus L is L, T plus E is X, T plus M is F, A plus O is O, C plus N is P, and K plus L is V. The cipher text is LXFOPV. MEET AT DAWN with the key THE QUICK BROWN FOX gives FLIJUBFKXE. The same addition step works for any message and any passage.
Who uses this encoder
Students of codebreaking use it most, because it shows the step from a repeating keyword to a running key, and why the running key is harder to break. Teachers use it in class to show how a cipher works letter by letter, with the addition table under the result. Puzzle fans use it to build challenges for friends, with the key hidden in a book on the shelf.
It also helps writers and game makers who want a secret message in a story or a game. A passage from a book the reader already owns makes a neat key, and the reader can decode it with a pencil and the same book. It is a cipher for play and learning.
Honest limitations
This tool is a classical cipher for fun and learning, not real security. A running key is stronger than a short keyword, but it is still breakable: if the key passage comes from a known book, an attacker can try common books, and if the same passage is used twice, the two messages can be compared to find the key. Never use it to protect real secrets.
The tool also drops spaces and punctuation, and it ignores numbers, so the cipher text has no word breaks. That makes decoding harder for the reader too, because they must guess where the words split. The key must also be at least as long as the message: if the passage runs out, the tool repeats it from the start, and that repeat weakens the cipher.
Frequently asked questions
What makes a good key passage? A long, ordinary text that only you and the reader know, like a page from a book you both own. The longer the better, and it must be at least as long as your message.
Why add the letters instead of swapping them? Adding mixes the message with the key, so the same message letter becomes a different cipher letter each time it meets a different key letter.
How does the reader decode it? They take the same passage, subtract each key letter from each cipher letter, and wrap below A back to Z. For example, D minus W is H, because 3 minus 22 is minus 19, plus 26 is 7, which is H.
Is this the same as a one-time pad? No. A one-time pad uses a truly random key used once, and it cannot be broken. A running key uses ordinary text, which has patterns, so it can be attacked. The running key is a step toward the one-time pad, not the same thing.
También disponible en español: Codificador De Cifrado De Clave Continua – Cifra Con Un Pasaje De Libro
