The D'Agapeyeff cryptogram as printed in 1939, 392 digits grouped in fives

Research · 6/10

Agapeyeff cipher cryptanalysis

Independent research study attempting to break, through computational cryptanalysis, the challenge cryptogram published by Alexander D'Agapeyeff (1902-1955), cartographer and Royal Air Force officer, at the end of the first edition of his handbook Codes and Ciphers (Oxford University Press, 1939): 392 printed digits, never solved since, and removed from later editions.

The cryptogram

The 392 digits read in pairs, as coordinates in a 5×5 Polybius grid: the message therefore has 196 symbols. What remains to find is which cipher was applied on top, in which language, and with which key.

A first solver that had to be rebuilt

The first difficulty came not from the cipher but from the solver. Its first version flagged a result as promising above a score threshold set in advance and never checked. After three days of continuous computing, nothing had crossed it. The tempting conclusion would have been that the plaintext was not English, or that D'Agapeyeff had made a mistake.

I tested the threshold itself instead: an authentic excerpt of Pride and Prejudice, scored with the same model, did not reach it either. The threshold was out of reach even for real English, because the language model had been trained on only 8,000 characters.

The rebuilt solver

For the Four-square, the simulated annealing settings were measured too: 40 restarts of 300,000 iterations recover the right key in 83% of test runs, against 58% for 20 restarts of 250,000 iterations.

Result

No signal statistically distinguishable from noise was detected across methods A through D, with guaranteed 100% coverage over two independent passes. The Four-square cipher was covered to 20.9% of its search space, also with no signal. A negative result, thoroughly documented with the associated code and data, so the search can resume exactly where it stopped.

Citing this work

Published in open access on Zenodo:

87 years Unsolved since 1939
3,753,383 Logged attempts

Documents

See all projects