Tool to decrypt/encrypt dancing men code (cipher used in the Sherlock Holmes book of the same name). A monoalphabetic substitution cipher made of little men displayed with legs and arms dancing.
Dancing Men Cipher - dCode
Tag(s) : Symbol Substitution
dCode is free and its tools are a valuable help in games, maths, geocaching, puzzles and problems to solve every day!
A suggestion ? a feedback ? a bug ? an idea ? Write to dCode!
The story The Dancing Men is one of Arthur Conan Doyle's stories featuring the detective Sherlock Holmes. Published in December 1903, the plot revolves around strange drawings of dancing men mysteriously found in a mansion. By studying these messages, Sherlock Holmes discovers that the drawings are in reality a code, each little character represents a letter.
The Dancing Men cipher is a substitution cipher for a letter to a dancing man. Each letter corresponds to a different humanoid symbol that dances.
a | b | c | d | e | f | g | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
h | i | j | k | l | m | n | |||||||
o | p | q | r | s | t | u | |||||||
v | w | x | y | z | |||||||||
dCode.fr |
In Conan Doyle's short story, Sherlock Holmes indicates that the cipher uses a flag in the dancing men's hand to indicate the division of the sentence into words. Indeed, there is no space in the ciphertexts present in the story. When a flag is present, it indicates the end of the word and the beginning of a next one. There is no flag at the end of a sentence.
In his short story, Conan Doyle used only 18 symbols because there were only 18 letters needed for his codes. 8 letters (FJKQUWXZ) were not used and therefore have no known symbols. Also the P and the V use almost exactly the same symbol in the short story. dCode presents on this page the most common complete variant on the Internet (source unknown) with the letters F, J, K, Q, U, W, X, 'Z ' (which were created) and the P and V are slightly differentiated.
Decryption of Dancing Men consists is a substitution of a dancing man with a letter.
Some men sometimes have a flag, in the original short story they indicate a word separator (or word ending).
In the short story, Sherlock Holmes uses the method of frequency analysis to determine that it is a monoalphabetic substitution.
The ciphered message is constituted of cryptograms with men/stick figures dancing or moving and having specific positions of legs and arms (and sometimes a flag in the hand).
In the book, stickman symbols are described as absurd little figures dancing across the paper.
All references to Sherlock Holmes or the elementary Doctor Watson (who however does not appear in the short story) are clues.
The characters of Cubitt and Abe Slaney appear in the short story.
There is no known variant, but the management of flags is sometimes hazardous and does not always indicate the end of a word.
Sir Arthur Conan Doyle's book has been published in 1903. The full stort is available here
dCode retains ownership of the "Dancing Men Cipher" source code. Except explicit open source licence (indicated Creative Commons / free), the "Dancing Men Cipher" algorithm, the applet or snippet (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, breaker, translator), or the "Dancing Men Cipher" functions (calculate, convert, solve, decrypt / encrypt, decipher / cipher, decode / encode, translate) written in any informatic language (Python, Java, PHP, C#, Javascript, Matlab, etc.) and all data download, script, or API access for "Dancing Men Cipher" are not public, same for offline use on PC, mobile, tablet, iPhone or Android app!
Reminder : dCode is free to use.
The copy-paste of the page "Dancing Men Cipher" or any of its results, is allowed (even for commercial purposes) as long as you credit dCode!
Exporting results as a .csv or .txt file is free by clicking on the export icon
Cite as source (bibliography):
Dancing Men Cipher on dCode.fr [online website], retrieved on 2024-12-14,