Solvers, and how to trust one
A solver is a program that tries keys. For a substitution cipher it guesses which cipher symbol stands for which letter, decrypts, and asks a language model how much the result looks like the language. It then changes the guess a little and keeps the change if the score improves. This is called hill-climbing, and it cracks ordinary substitution ciphers in a blink.
Try it: watch a solver work
Start the solver on a real text that has been enciphered with a random substitution. The text under the table is its current guess; watch it turn into readable words. Then try again with gibberish, and a short ciphertext. The score it reaches is in bits per character: lower means more like the language.
Two things to see. A short ciphertext cannot be solved: with too few letters, many keys look equally good. And a ciphertext of gibberish never reaches the score of genuine text. The solver’s score is a measurement, not a verdict: it says how much the best guess looks like language, so it must be compared with what the same method gives on texts with the right answer and on texts with no answer at all.
Calibrate before you believe
Before running the solver on the manuscript we asked three questions about it, using ciphers whose answer we knew.
A planted cipher is decrypted by the solver almost perfectly from about 1,000 characters (substitution) or 5,000 (homophonic, where one letter has several symbols). The manuscript has about 200,000. That is why the failures later are informative: the solver is able to succeed when there is something to find.
Other cipher classes at 120,000 characters
| Cipher | Letters recovered | Score reached | True text's score |
|---|---|---|---|
| vigenere | 15% | 5.22 | 3.23 |
| nulls | n/a | 3.90 | 3.23 |
| nomenclator | n/a | 3.87 | 3.23 |
| verbose | n/a | 5.20 | 3.23 |
| homophonic | 98% | 3.19 | 3.23 |
- Can it find a known key? Yes, at the manuscript’s size. On planted Latin ciphers it recovers nearly every letter from about a thousand characters. The manuscript has about 200,000.
- Can it tell languages apart? Mostly, and the confusions are between close relatives.
- What does it find in text with no message? Almost as good a score as it finds in the manuscript. We built gibberish from the manuscript’s own symbols, with the same letter habits, and ran the solver on that. This is the control that matters.
The manuscript’s letters are so repetitive that any flexible mapping finds language-like patterns in them, including a mapping fitted to gibberish. The result: for almost every language we tried (13 of 14 in the units view), the manuscript scored within 0.15 bits of gibberish, and clearly worse than a genuine text of the language. A true plaintext would have scored like genuine text. Greek is the one outlier, and it is a worse fit than gibberish, not a better one.
Three checks that could have changed the answer
- Transliteration noise. About 13% of words differ between two transliterations. We planted a cipher of Latin, corrupted 13% of its words, and re-ran the solver: the score got only 0.10 bits worse than the true text’s (and 0.24 bits with 25% corrupted). Noise cannot explain the large gaps, though it could hide a small one.
- A better judge. A trigram model is a coarse judge, so we also used a small neural network trained on each language. It rated the decoded manuscript about the same as decoded gibberish.
- More realistic texts. Our first comparison texts were mostly modern spelling. We repeated the test with eight medieval texts of the 12th to 15th centuries. The gaps between the decoded manuscript and a true text became larger, not smaller: from 0.56 to 1.36 bits per character. The three languages that looked closest with modern texts (Hebrew, Latin, Arabic) were only close because of the modern models.