Secret codes

The Gold-Bug

Date: 1843Place: Philadelphia (United States)Who?: Edgar Allan Poe

A short story by Edgar Poe that gave generations a taste for codes

Mysteries and decipherments
An illustration for “The Gold-Bug”
An illustration for “The Gold-Bug” — Edgar Allan Poe’s story
Herpin — Public domain — Wikimedia Commons

In brief

In “The Gold-Bug”, published in 1843, the American writer Edgar Allan Poe tells how a man deciphers a parchment covered in numbers and symbols, and finds where Captain Kidd’s treasure is buried. The hero explains frequency analysis step by step. The story inspired many future codebreakers.

The story

Poe loved puzzles. In 1839 and 1840, he challenged the readers of a Philadelphia paper to send him encrypted messages, and claimed to have solved nearly all of them. In “The Gold-Bug”, William Legrand finds a parchment on a South Carolina beach. By heating it, he makes a message written in invisible ink appear. He counts the symbols: the most frequent, 8, must be “e”, the most common letter in English.

The story won a 100-dollar prize and became one of Poe’s most widely read works. Charles Baudelaire translated it into French in 1856. The young William Friedman read it as a child and later said it had sparked his passion. The parchment’s message begins “53‡‡†305))”, a string of signs that can be deciphered by following Legrand’s method.

Example

In the parchment’s cryptogram, the symbol 8 appears 33 times: Legrand concludes that it stands for the letter e.

Try it in the workshop

Did you know?

In English, the most frequent letter is E, followed by T, A, O, I, N… You can check this with the frequency analysis tool in the workshop.

Sources: D. Kahn, The Codebreakers, 1967 (rev. ed. 1996); S. Singh, The Code Book, 1999; F. L. Bauer, Decrypted Secrets, 4th ed., 2007; C. P. Bauer, Secret History: The Story of Cryptology, 2nd ed., 2021; texts written for this site.

In the same family: Mysteries and decipherments