Code
Classical and machine ciphers, from Caesar’s shift and the ACA’s 62 types to Enigma and Lorenz, and text as notes: enciphered with a key, chained, many broken without one.
ElsieFour
Alan Kaminsky published ElsieFour (LC4) in 2017, a hand cipher on 36 tiles and a marker, built on RC4’s idea of a state changed by every character; Mirek Kratochvíl’s LS47 widened it to 49 tiles. A nonce and a signature make a forged or changed message show. Checked against every line of Kaminsky’s Appendix A, his changed message of §4, and LS47’s own worked example.
Terms
History, how it works, how it was checked, limits
History
Alan Kaminsky of the Rochester Institute of Technology published ElsieFour (LC4) in April 2017, after three earlier attempts, as a cipher to be worked by hand that is still hard to break. It takes from RC4 a state that every step changes and from Playfair a square, and makes the change depend on the plaintext, so that the cipher authenticates. He carries it as 36 wooden tiles and a game marker in a bag, from which a key is drawn. The same year Mirek Kratochvíl’s LS47 widened the square to 7 × 7 for punctuation and digits, spread a key from a password, and left the marker where it stands when its tile moves.
How it works
The key is the order of the tiles; each carries its value split in two, the places to count right and down. To encipher a character, find it, count right and down by the numbers of the tile under the marker, and read the tile reached; turn the plaintext’s row one place right and the ciphertext’s column one place down; move the marker by the ciphertext tile’s numbers. Deciphering counts left and up. LC4 enciphers a nonce of six or more and a header first and throws their output away, then the plaintext and a signature of ten or more; the nonce goes in clear before the ciphertext. LS47 enciphers its nonce in front of the message.
How it was checked
Every one of the 49 lines of Kaminsky’s Appendix A, the square, the marker and each pair of characters, and his ciphertext; his changed ciphertext of §4 reads exactly as he prints it. LS47’s worked example in its README, each board and the marker’s place. CrypTool’s lc4.py: its LC4 example; its LS47 example, run with Kaminsky’s marker, which checks the password’s spreading; and its run of #, which shows why LS47 leaves the marker: under Kaminsky’s rule a marker on # (worth 0) turns with its tile, and the run comes out unchanged.
The tests hold 29 checks of this tool; 12 rest on outside material, the first eight here:
- Another’s computation ElsieFour: CrypTool’s lc4.py example, twenty a under key s2ferw_nx346ty5odiupq#lmz8ajhgcvk79b
- Another’s computation LS47: CrypTool’s lc4.py example on LS47’s square, its key spread from s3cret_p4ssw0rd/31337 and its marker Kaminsky’s (its -m0), checks the spreading
- Another’s computation ElsieFour: CrypTool’s lc4.py run of fourteen #: under Kaminsky’s marker they come out as #, under LS47’s as it prints
- A print’s own example ElsieFour: every one of the 49 lines of Kaminsky’s Appendix A, the square, the marker’s i and j, pt and ct
- A print’s own example ElsieFour: Kaminsky’s Appendix A, the nonce solwbf sent as written and the ciphertext he prints after it
- A print’s own example ElsieFour: the message of the Appendix A is written as Kaminsky writes it, I’m about to put the hammer down. as im_about_to_put_the_hammer_down
- A print’s own example ElsieFour: Appendix A deciphered from its transmission, the nonce taken as six, and the signature #rubberduck reads back
- A print’s own example ElsieFour: in Appendix A, the marker on # (worth 0) leaves the character as it is, i to i and p to p, and nowhere else does one stand for itself
The other 4, and every tool’s checks
Limits
Kaminsky’s search for the key from known plaintext (§5) is not built: by his extrapolation a whole key costs some 2^58.9 conflicts. LS47’s board of playing cards is left out. ElsieFour is meant to be worked away from any computer, so nothing typed here is saved, put in a link or pinned, a deciphered message goes to no other tool, and the tool opens on Kaminsky’s example each time. No analysis beyond Kaminsky’s is claimed.
- Alan Kaminsky, “ElsieFour: A Low-Tech Authenticated Encryption Algorithm For Human-to-Human Communication”, Cryptology ePrint Archive, Report 2017/339 (12 April 2017)
- Mirek Kratochvíl, LS47 hand-computable cipher, README (2017)
- Bernhard Esslinger and the CrypTool project, lc4.py, version 2.8.1 (2018), in the LS47 repository