In classical cryptography, the running key cipher is a type of polyalphabetic substitution cipher in which a text, typically from a book, is used to provide a very long keystream. The earliest description of such a cipher was given in 1892 by French mathematician Arthur Joseph Hermann (better known for founding Éditions Hermann). Usually, the book to be used would be agreed ahead of time, while the passage to be used would be chosen randomly for each message and secretly indicated somewhere in the message. The term running key was introduced by William F. Friedman; it is distinct from progressive key (David Kahn's term for systems such as that of Trithemius, which cycle through every alphabet in a fixed order before repeating) or progressing key (Gaines' term for the same concept). An early cryptanalysis of a running-text key was carried out by Étienne Bazeries in 1899, when he read the enciphered dispatches of the conspirators around the Duke of Orléans. The dispatches were written in four-figure groups, each pair of digits standing for a letter through a Beaufort table, and the key was a continuous text: successive lines of Alfred de Musset's poem La Nuit de décembre, or a written-out date, selected according to the calendar date. Because the key did not repeat over the short telegrams, their apparent periodicity was a chance effect, and Bazeries recovered the messages by guessing probable words.
Example The key text used is a portion of The C Programming Language (1978 edition), and the tabula recta is the tableau. The plaintext here is "Flee at once". Page 63, line 1 is selected as the running key:
errors can occur in several places. A label has... The running key is then written under the plaintext:
The message is then sent as "JCVSR LQNPS". However, unlike a Vigenère cipher, if the message is extended, the key is not repeated; the key text itself (the text from The C Programming Language) is used as the key and can be extended for any arbitrary length. If the message is extended, such as, "Flee at once. We are discovered", then the running key continues as before:
To determine where to find the running key, a fake block of five ciphertext characters is subsequently added, with three denoting the page number, and two the line number, using A=0, B=1 etc. to encode digits. Such a block is called an indicator block. The indicator block will be inserted as the second last of each message. (Many other schemes are possible for hiding indicator blocks.) Thus page 63, line 1 encodes as "AGDAB" (06301). This yields a final message of "JCVSR LQNPS YGUIM QAWXS AGDAB MECTO".
Variants Modern variants of the running key cipher often replace the traditional tabula recta with bitwise exclusive or, operate on whole bytes rather than alphabetic letters, and derive their running keys from large files. Apart from possibly greater entropy density of the files, and the ease of automation, there is little practical difference between such variants and traditional methods. The American Cryptogram Association uses "Running Key" for a constrained puzzle form, in which a 40–50-letter plaintext is split in half and its first half is used as the key for its second half. Methods for solving this form are set out in the association's lessons.
Gromark cipher The "Gromark cipher" ("Gronsfeld cipher with mixed alphabet and running key") uses a running numerical key formed by adding successive pairs of digits. The VIC cipher uses a similar lagged Fibonacci generator.
… excerpt ends here. Continue reading the full article.
