Hall XIII · Culture Edwardian Britain · 1903 Fictional substitution cipher

Conan Doyle's Dancing Men

The fictional stick-figure cipher Sherlock Holmes solves in The Adventure of the Dancing Men (1903) — a frequency-analysis primer disguised as a Strand magazine story.

RegionNorfolk, England (in-fiction); London (publication)
YearPublished Strand Magazine, December 1903
AuthorSir Arthur Conan Doyle
TrackB (alphabet mapper)

Interactive Exhibit

Type a short message and the widget will display each letter as a labelled 'dancing man' tag. Then run a frequency count — exactly the way Holmes did. Track B — illustrative.

Why This Matters

Conan Doyle's 1903 short story 'The Adventure of the Dancing Men' is the most widely read introduction to cryptanalysis in English. Holmes is sent stick-figure drawings — small dancing men, some holding flags — left chalked on windowsills and garden sundials. He recognises them as a substitution cipher, applies frequency analysis ('there are 27 of them ... E is the most common letter in English'), and reconstructs a stalker's threats in time to (almost) prevent a murder. The story popularised the term 'cipher' for general English readers and made frequency analysis household knowledge.

📜Historical Context

Doyle invented 26 stick-figure glyphs to stand for the 26 English letters, with little flags marking word breaks. The cipher in the story is broken in the classic way: count letter occurrences in the longest message, identify the most frequent symbol as E, then use word patterns (single-letter words = A or I, three-letter common words = THE) to back-solve the rest. Holmes solves the system in a few hours — the same way William Friedman would later teach US Army Signal Intelligence Service trainees to attack monoalphabetic ciphers in the 1930s.

⚙️Technical Notes

The cipher is a pure monoalphabetic substitution. Like all monoalphabetic substitutions it preserves letter frequencies, so for any message longer than ~50 letters in natural English it is breakable in minutes. The story is mathematically rigorous: every dancing-figure substitution stays consistent, and the published solution is internally correct. Cryptography textbooks from David Kahn's The Codebreakers onwards routinely cite it as the first wide-audience demonstration of frequency analysis.

🔬Modern Echo

The Dancing Men cipher inspired generations of recreational cryptographers and has been re-used in everything from children's puzzle books to ARGs. Its enduring lesson is the one Holmes states in the story: any cipher is breakable that uses one symbol per plaintext letter. Modern cryptography moved past this limit precisely because Edwardian readers all learned it.

Quick Facts
HallHall XIII · Culture
RegionNorfolk, England (in-fiction); London (publication)
EraEdwardian Britain · 1903
DisciplineMonoalphabetic substitution
TrackB (alphabet mapper)
Modern echoCryptography in fiction · Holmes as proto-Bletchley
← Previous Bach's BACH Motif