AI-assisted codebreaking has been in trend since September 2026 (see another article). When an AI solution of a historical unsolved ciphertext was published, I received an inquiry about how one can know the solution is right. I try to answer the question below.
The answer is simple and it doesn't matter whether the solution is by AI or not. You map each symbol in the ciphertext to a corresponding segment in the decrypted plaintext to see whether the association of the symbols with plaintext elements is consistent throughout according to the claimed key. (Equivalently, you apply the key to the ciphertext to see whether it reproduces the claimed plaintext.)
This is easily done for numerical ciphers. But for ciphers with graphical symbols, it takes some effort to track the association of symbols with their readings through transcription. So I welcome the recent trend that some AI solutions provide a visual mapping between graphical symbols and their values.
AI solutions often provide a Python script to apply the key to reproduce the plaintext. This will do once you confirm the transcription. (I also use my Perl script to do this for numerical ciphers, but it's more fun for me to see the mapping on the original image.)
A caveat is that there are often symbols that occur only once. There is no way to check consistency for such symbols. Still, symbols for letters or syllables may be confirmed by their context. (When you have PRE*EREMENT, it is safe to accept *=MI.) When a symbol represents a whole word, however, the task is more difficult. Confirming a word in the context requires understanding the language.
Even if you know the plaintext language, a succession of symbols occurring only once is hard to verify. An example is the decipherment of a telegram from Empress Eugénie to Napoleon III (search for "Empress" in another article). It has a sequence "677(je) 1074(re) 310 925 357(des) 381 708(le) 81 1099 123 495 656 257 914(par) 439(ennemi)" which include many groups occurring only here. One decipherment read this telegram as follows:
I marked with [] the readings of groups occurring only here. One may think any reading can be derived in this way, but the suggested readings of symbols are carefully chosen to fit in the alphabetical sequence of the elements in the code. In the case of alphabetically ordered code (one-part code), there can be found some ground for the claimed decipherment.
When there is no regularity in the arrangement, however, it is a different matter. If a symbol occurs only in one instance, only the context can verify its reading. In the example of the Empress' telegram above, I think there is no way to verify the solution if the arrangement of elements in the code had no regularity.
Apart from human verification, in AI codebreaking, AI often performs its own rounds of verification before finalizing its solution. The following lists typical techniques for verification by AI that I read in various AI-assisted solutions.
(1) Run different readers to see if they produce the same result. I suppose a reader is a session/instance of a particular AI model that suggests reading of symbols starting from different initial conditions (which are typically random in case of simulated annealing). If their readings of a symbol match, it is accepted for this round.
(2) Run a control experiment with a positive control, which is a synthetic ciphertext made up from known plaintext according to the scheme assumed to be used in the ciphertext in question. If the reader cannot read this control ciphertext, it is not expected to decipher the actual specimen. If the reader can read the control but not the actual ciphertext, the assumed scheme or the methodology in the reader may be wrong.
(3) Run a control experiment with a negative control, which is a ciphertext that does not correspond to actual plaintext. (In one case I read, the negative control is produced by shuffling the actual ciphertext.) It is expected that the reader cannot extract a meaningful plaintext from this. If the reader outputs a plausible text, there is a risk that the reader may produce a plausible text which, however, does not exist in the actual plaintext. I read such an experiment in Japanese telegram by satorunet, where a reader produced from a negative control a typical ending in Japanese telegram sentences (...aritashi).
(3) In one case I read, after a majority of the code is recovered, part of the key was hidden and AI was caused to discover those readings again to see if the same results could be recovered.
(4) There is also a quantitative score of naturalness of the recovered plaintext. It seems to calculate for every place in the ciphertext a raw score indicatintg how likely the decrypted text is with respect to known frequency statistics of the language. Typically, the score is a negative value representing a logarithm of likelihood 0-1, so the closer to zero (the smaller absolute value), the better the result is. The raw scores are accumulated and the sum is divided by the number of letters to give a score per letter. (Otherwise, longer ciphertexts get worse score.)
Come to think of it, the above techniques need not limited to AI and may have been done in computational cryptanalysis. ((1) may be typically done in agent-based AI.) It is just I came to often read about them in AI solutions.
(5) Of course, when sufficient materials are available, the key obtained by codebreaking is applied to a fresh ciphertext. If meaningful plaintext emerges, the key may be considered right. (This method is also applicable to verification by humans.) In one case I read, one ciphertext was withheld (not used) in the codebreaking process to ensure independence of the fresh reading.
(6) The deciphered content is checked against external evidence. If an event mentioned in a deciphered text is found in some independent document not used for the solution, it adds credibility to the solution. Again, this is not limited to AI but today's AI seems to be very good in this document search and AI often finds the very plaintext from publications or archives.
It seems AI can not only find documents but also draft an explanation about the historical context (possibly finalized by a human user). My impression is that they are doing a very good job (in contrast to Gemini or Copilot I use that very often give hallucinated explanations and nonexistent references!). When it comes to historical narratives, cryptographers are not in the position to verify.