IT lexicon › Security › Running key cipher

Running key cipher

Security På svenska → Updated: 2026-10-11

A Vigenère cipher whose key is a long passage of text, usually from a book, so the key never repeats.

Vigenère's weakness is the short keyword cycling at a fixed interval, which is what the Kasiski examination exploits. The fix seemed obvious: make the key as long as the message, say an agreed page of a novel. No period, nothing to find.

The catch is that both plaintext and key are natural language. Common letters in one meet common letters in the other far more often than chance would allow, and an analyst can guess words like "the" or "and" on either side and crawl through the text. William Friedman showed during the First World War that the method can be broken systematically. The cure was to swap the novel for genuinely random characters — which is precisely what a one-time pad is.

← Back to the lexicon