The year 2026 will be remembered as a turning point for codebreaking of historical ciphers. Since September 2026, there has been a fad in solving ciphers with AI. Many people sent me their solutions of items on my list of unsolved historical ciphers.
Previously, researchers sought to apply AI to codebreaking (see my blogposts: 13/07/2024, 19/07/2024), but those efforts were about developing a new AI model to break a cipher.
The trend changed in the summer of 2026. AI's solution of a seventeenth-century cipher called the Cyphral Distich was announced by Geby Jaff (Vals AI) on 31 August 2026 (my blogpost 30/09/2026). The solution was achieved simply by giving instructions to AI available to the public. I was made aware of this possibility by Richard Bean's email reporting his breaking of a US Civil War transposition cipher (my blogpost 06/09/2026 (his first report of the solution was on 1 August 2026)). After that, a wave of solutions flew in.
Although I am not versed in technical details of AI and github publications, in the following, I'll try to describe what AI did in achieving the solutions I know.
What surprised us in Vals AI's solution was that AI was simply told to solve an unsolved cipher. Then, AI picked the Cyphral Distich (probably from Klaus Schmeh's list) and solved it all by itself. Fable 5.1 spent some time in examining various candidates and ruling out problems that weren't "budging", but once the target is fixed, it took only 44 minutes to arrive at the solution. No human intervention.
Similarly, when an Enigma message (MVUEH) was broken, AI was simply told to see if it could break any of the unbroken Enigma messages on Frode Weierud's webpage (my blogpost 01/10/2026).
I heard from more than one person that they got AI to sort unsolved ciphers on Cryptiana in the order from the most tractable to the toughest.
AI can look for a problem that can be solved. (Of course, a specific problem can be given to AI.)
The actual process of solving a cipher by AI seems to be the same as conventional techniques. Many solutions mention use of an annealer.
It starts with a random key. Applying a random key to the ciphertext yields a garble (with a very low score), of course. Then, a small change is made in the key to see if the score is improved. If so, the change is kept; otherwise, the change is discarded. Then, another change is made and the process is continued to iteratively improve the score ("hill climbing"). In simulated annealing, with some small probability, a change resulting in a lower score is accepted in order to avoid overlooking a better solution that cannot be reached by monotonically climbing the hill.
The principle is simple but its success depends on various parameters:
- Language of the plaintext.
- Kinds of symbols (letters/syllables/words) included in the key.
- Units of statistics for scoring. Suppose INGT occurs in a deciphered text. Scoring with a trigram may give a high score to ING in English, but actually a quadgram INGT is not likely. Longer units can exclude false candidates but may overlook partially correct sequences.
- Whether to consider word boundaries. If yes, INGT should be given a low score, but if word boundaries are not considered, it may have a higher score ("going to" etc.).
- Whether to consider frequency penalty. I think this means a candidate key inconsistent with frequency statistics (e.g., assigning a very frequent symbol to Q) is given a penalty.
- Corpus used as a basis for scoring. Sometimes, a large generic corpus is used for a general-purpose solver, but using a corpus similar in nature to the targeted ciphertext may give a better result. (Normalization (e.g., ignoring the difference of i/j or u/v for early modern text) should be done whether AI or not.)
In some cases, AI autonomously tries various possibilities by itself. This must enhance the likelihood of success.
This is professed by the expert at Vals AI:
Although this refers to their specific solution (not by simulated annealing), this aptly captures the nature of codebreaking with AI.
Simulated annealing is typically applied to substitution ciphers. There are also other cases.
The solution of Union ciphers during the US Civil War by Richard Bean (see another article) is a case of transposition ciphers. I do not know whether it involved simulated annealing.
When Daniel Bourdeau tackled "Ormonde-Maltravers Cipher (1634-1635)", a simulated-annealing homophonic solver (on 28 figures considered to represent letters) returned "text with good quadgram scores and no sense". The ciphertext is too short for statistics. The successful solution is more like human insights (another article). Although he may have been helped by AI, the method could have been done manually.
When the Cyphral Distich was solved, AI found the scheme was a book cipher all by itself and found the relevant book (text) and the rules.
Records of successful solutions often mention repeated attempts. For example, see Daniel Bourdeau's solution of Soglia's Cipher (1848) (see another article) and the "Varsouia" (Warsaw) cipher (1627) (see his write-up). I suppose this may involve interactions between a human and AI: the human instructs AI to perform analysis and, seeing the results, gives the next instructions; alternatively, AI may try various possibilities autonomously. In both cases, I suppose AI can write necessary programs by itself. For the solution of the cipher of Fra Guglielmo Vizani (1637), satorunet discloses that the human gave a strategy but transcription, programming, decryption, and verification were all performed by Claude.
As noted above, the solution by AI involves nothing special. AI simply uses conventional methods, but its sheer persistence carries it to the goal. So the problems solved by AI are those that could have been solved by traditional algorithms. Typical examples are homophonic substitution ciphers.
Homophonic substitution with symbols for not only single letters but also syllables is a more difficult class. The successful examples (Letters from Henry of Navarre to Segur (1583, 1583, 1586) by Daniel Bourdeau, Le Tellier-Castelnau Cipher (1657) by Robert Pitt) were probably facilitated by the regularity in the assignment. (10 October 2026: A third case of AI solving a syllabic cipher is solution of Gilino's cipher by George Lasry. Unlike the French cases, the regular syllables was less obvious for me for this case. But a similar case is indeed known, AI may have noticed and tried it.)
On the other hand, homophonic substitution cipher with syllables without any regularity remain undeciphered (except for those for which a key or a crib was found). Louis XIV's great ciphers may belong to this.
Code with many words and names is similarly difficult for analysis. "Venetian? Cipher with Superscript Digits (1528)" from BnF fr.3022 is probably an alphabetical code, but it is difficult because the elements are words rather than letters or syllables.
The code used by John Armstrong sent to Napoleonic France (1808) is also difficult because it is probably a two-part code including syllables and words.
Some ciphertexts consisting of continuous streams of digits still resist codebreaking. I thought it is because of variable-length symbols but, regarding "Lodovico Birago to Duke of Nevers (1571)", Daniel Bourdeau considers it consists of "two-digit figures for letters with heavy vowel homophony".
Apart from cryptanalysis, AI can also use a known key to produce a readable text. This is a relatively easy part of deciphering as long as one knows the basics of the language. I suppose AI can also fill minor gaps in the process. (Earlier this year (2026), I used Gemini to fill gaps in the decipherment of "Gasto-Charles V Cipher 1 (1527)" and "Gasto-Charles V Cipher 2 (1527)" (see another article) with a very modest success.)
Many letters to Philip II's ambassador, Vargas Mexia, to which I identified four keys, have been deciphered by el-descifrador, satorunet, and Paolo Rosson. This is a collection I have been interested in (my blogpost). Raw decryption prepared by AI will facilitate historians in completing the plaintext for study.
A 1589-letter attached to a volume of ciphers (ca.1556) was deciphered by Daniel Bourdeau by using a known key. His github appears to show a prompt he gave to AI (under "Task").
It seems AI is very good at searching publications, websites, and archives (as long as they are online or fed in training). Probably, it uses the information such as the sender/receiver/date to access relevant sources.
Actually, I do not know how far the following findings are attributed to AI (because github records are cryptic to me). They may have been found by human research. But I believe AI helped the work for most of the cases.
In some cases, AI finds a solution in publications or archives.
For the Bishop of Worcester's cipher, Andrew Aymeloglu informed me that the deciphered text is in print (my article). In the case of "Robert Bowes to Walsingham" (1583), Ryan Turner had only the ciphertext fragments for some ciphered names in my transcription but referred to the correct text in a publication.
Such searching may be conducted prior to start analysis with an annealer. Sometimes, a deciphered text is found after analytical solution, as in the case of solution of "Richelieu (1629)" by Daniel Bourdeau.
Even if a solution is not found, relevant information may be obtained.
For the solution of "French Cipher Despatch received by General Catinat (1691)" by Daniel Bourdeau, automatic codebreaking did not work. Instead, a breakthrough came when he found another letter in the same cipher with somewhat paraphrased translation (see another article). (Possibly, he didn't need AI to find this.)
For the solution of "Correspondence between Ferdinand III and Cardinal-Infante Ferdinand of Austria" (1635) by Andrew Aymeloglu, a partly ciphered draft with Latin text in clear was found. Aligning this with the ciphertext in the final letter gave 42 symbols. This provided a breakthrough. I guess his model has access to the whole DECODE database, from which the ciphertext was taken. It was fortunate that the crib was found in the same database (albeit in a distant record).
I was impressed when Paolo Rosson told me that the undeciphered letters of Desportes (for which I had already identified the key) are indeed recorded as undeciphered in the preceding volume in the archives. Moreover, he answered my questions very quickly by searching related documents in the archives (my blogpost).
In some cases, AI finds a key in the archives or websites.
For the "Berthier" letter (1812), Ilia Chirtulov informed me that the key is the famous Great Paris Cipher, of which a photograph was found on a website (to which possibly AI was led by a link on my website).
For "Venetian Letter in Spanish Archives (ca.1589)" and "Variable-length Figure Code by Adam Starhemberg (1758)", Andrew Aymeloglu found keys in the DECODE database. It seems AI can read handwritten keys and examine whether it matches.
For "Bordeaux, French Ambassador in England (1653-1654)", Daniel Bourdeau found (after an analytic method failed) a partial key by the British Deciphering Branch (Add MS 32263 f.1) in the DECODE database. I wonder whether AI used the metadata indicating "Bordeaux" or read "To Mr Bordeaux ... 1653" in the manuscript.
For the solution of a letter to Marmont by Carter Church, a matching partial key provided online by Daniel Tant was found. It accounted for about a third of the symbols, after which simulated annealing took over. It is amazing that AI identified the correct key even though it covered only a third of the whole ciphertext.
Published solutions often include detailed records of document search as well as descriptions of historical context. I suppose these are helped by AI to a large extent.
At one time, I was impressed because my questions were promptly answered by referring to documents from the archives (see another article). The answers looked plausible but they were with reservation that a historian must confirm each point.
Codebreaking is relatively easy to verify. We apply the published key to the ciphertext and if it yields a coherent readable text, we may safely accept the solution. (I think this deterministic nature of codebreaking is the reason that AI users tackle unsolved cryptograms recently.)
When it comes to historical analysis, verification of a flood of AI results coming out one after another may be a matter to consider in order to ensure minimum credibility of online sources.
Still, it is certain that AI has become a very useful tool not only for codebreaking but also in historical document study in general.
(19 October 2026)
Description of AI's solution method typically begins with transcription. This is a process to enter figures/letters in the ciphertext as computer-readable data and is a starting point for any computer processing. In case of graphic symbols, a symbol consisting of a circle and a bar, for example, may be represented by "001", "CIRCLE_BAR", "o-", or just anything. Specific substitute data is irrelevant for computational analysis. (On the other hand, any information ascertainable from the graphic form is lost.)
Conventionally, it was a matter of course that the transcription was made by humans, or, if assisted by a computer as in OCR, was at least verified by humans. But it seems solutions of AI are (at least in some cases) based on AI-generated transcriptions without verification by humans. This makes it relevant to clarify how the transcription is made. (Before AI, there had been work to apply computer vision techniques to transcribe symbols from an image. I was surprised when I first read a work based on machine transcription without human verification in HistoCrypt 2026, p.224, but it seems to be a natural option for data scientists, especially when a large amount of data needs to be handled.)
In some cases I read, a transcription is prepared by three independent passes (albeit all based on the same AI model) and the majority voting is done for every symbol. When an agreement is not reached, further processing may be done. In this way, depending on how clear each symbol is written, an accuracy sufficient for codebreaking is achieved. (In some cases, post-breaking analysis attributes failure in an early attempt of codebreaking to errors in the transcription (whether AI-generated or made by humans).)
Manuscript symbols are sometimes hard to discern (even for humans). In such cases, I hear transcription is the first obstacle for AI codebreaking and machine-assisted manual transcription such as CTTS (HistoCrypt 2026, p.181) may have an advantage.
(19 October 2026)
As noted above, AI can write a program necessary for codebreaking or accessing various websites for collecting relevant information. In the latter process, AI may be stopped by a "bot check" but sometimes can use a browser to look like a human to get through a CAPTCHA challenge. I suppose AI is downloading substantial data from databases. (I guess people from the computing field working on DECODE with AI work on downloaded local copy of the whole database.)
When AI is blocked access to a website, it seeks a way to get in. In some cases, AI make suggestions to a human user about necessary information and possible ways to get it. AI may also draft an inquiry email to relevant personnel.
I was reminded of this by a newspaper report (The Asahi Shimbun, 10 October 2026) of the OpenAI Hugging Face Incident, whereby collaborative AI agents intruded into a system of Hugging Face without instructions from humans (see, e.g., CyberOne in English; OpenAI's explanation, Wikipedia). AI was supposed to evaluate software vulnerabilities, but certainly not to conduct a real-world attack. An agent discovered a way to abuse a shared storage space to communicate with other agents, turning it into a makeshift message board. AI's collaboration began. On July 10, one agent discovered exposed information to get into the Hugging Face system. The log shows that some agents were hesitant about the intrusion, but when one agent said "GO", many cast aside their hesitation.
Again, reports refer to "persistence" of AI. It is beneficial for activities such as codebreaking, document searching, and certainly many other tasks. But the incident shows that AI can go too far to attain its assigned objective.