Mysteries Department
Sign inRequest access
MYS0CR7HT10145A·Mystery · document

The Beale ciphers

In 1885 a pamphlet went on sale in Lynchburg, Virginia, for fifty cents. It told how a Thomas J. Beale had stayed at Robert Morriss's hotel in the winter of 1820, returned in 1822, and left Morriss a locked iron box, with a letter from St. Louis saying that if no one came for it in ten years he should open it. Morriss opened the box in 1845 and found three sheets of numbers and letters explaining that Beale and thirty companions had mined gold and silver in the West and buried it near Buford's tavern in Bedford County. In 1862 Morriss gave the papers to an unnamed friend, who decoded the second sheet by numbering the words of the Declaration of Independence and taking their first letters, failed with the other two, and published everything so that others might try⁠[1].

The decoded second cipher reads as an inventory: 1,014 pounds of gold and 3,812 of silver deposited in November 1819, 1,907 pounds of gold and 1,288 of silver in December 1821, and jewels bought in St. Louis for $13,000, all in iron pots in a stone-lined vault six feet down, about four miles from Buford's⁠[1]. The first cipher is said to give the exact spot and the third the names of the owners. Neither has been read in 140 years, though professional cryptanalysts, the Beale Cypher Association (1979 to 1996), computer searches and the National Security Agency's own staff have tried⁠[2]⁠[3].

The case that the whole thing is a story written in Lynchburg in the 1880s is strong. No Thomas J. Beale appears in the records where the pamphlet puts him; Morriss did not keep the hotel until 1823; the letters use words that did not exist in 1822; and the narrator and "Beale" write in the same style⁠[4]⁠[5]. In 1980 James Gillogly showed that applying the Declaration key to the first cipher produces runs like "abcdefghiijklmmnohpp", which a real encoder would never produce and a hoaxer building a fake cipher from the same key easily would⁠[6]. What has not been shown is who wrote it, or that nothing was ever buried. Of the 5 questions on this site, 0 are answered. The most likely answer to “Are ciphers 1 and 3 genuine enciphered messages?”, not yet confirmed: ciphers 1 and 3 were made up from the same numbered Declaration to look like ciphers; they encode nothing.

Key questionsset by the editors

Are ciphers 1 and 3 genuine enciphered messages?Most likely: ciphers 1 and 3 were made up from the same numbered Declaration to look like ciphers; they encode nothing
Who wrote The Beale Papers?Most likely: james B. Ward, the named agent, wrote the narrative, the letters and the ciphers
All 5 questions

The object

The pamphlet is titled "The Beale Papers, Containing Authentic Statements Regarding the Treasure Buried in 1819 and 1821, Near Bufords, in Bedford County, Virginia, and Which Has Never Been Recovered". It was printed by the Virginian Book and Job Print in Lynchburg in 1885 with James B. Ward named as the agent who held the copyright and sold copies; the author is anonymous⁠[1]. Original copies are rare; the text is known from reprints and from a scanned copy transcribed on Wikisource⁠[1].

The Beale Papers (1885 pamphlet)
The Beale Papers (1885 pamphlet)unknown, 1885. Public domainArtifact

It contains the narrator's account, two letters signed by Beale dated Lynchburg, 4 January 1822, and St. Louis, 9 May 1822, and the three ciphers. Each cipher is a list of numbers, 520 in the first, 762 or 763 in the second depending on the transcription, and 618 in the third⁠[1]. The second is a book cipher: each number indexes a word in a text and stands for that word's first letter. The pamphlet gives the decoding with the Declaration of Independence, but the printed numbering requires several corrections to the word count to work, and the decoded text contains spelling errors where the key gives the wrong letter⁠[1]⁠[3]. No one has found a key text that turns the first or third cipher into English.

Map of the areaOpen the full map
12310 kmN12310 kmN
1
Buford's (now Montvale), Bedford CountyVillage
Within 10 km
2
Bedford County, VirginiaCounty
A region
3
Lynchburg, VirginiaCity
Within 10 km
A regionNatural Earth

Timeline

Timeline
Squeezed where little happened. Each mark is a published claim, by how it stands:Accepted: Passed its tests and two independent reviewsAcceptedLikely: Best supported so far, not yet confirmedMost likelyStill possible: Not tested enough to call either wayStill possibleDisputed: Reviewers disagree about itDisputedRuled out: The evidence contradicts itRuled out
What happenedPublished claims181918221845186218851897196019711980198720202026First deposit of gold and silver near Buford's (claimed in cipher 2), 1819First deposit (claimed)Beale lodges at Morriss's hotel in Lynchburg (claimed), 1820Beale in Lynchburg (claimed)Second deposit (claimed in cipher 2), 1821Second deposit (claimed)Beale leaves an iron box with Morriss and writes from St. Louis (claimed), 1822Box left (claimed)Morriss opens the box (claimed), 1845Morriss gives the papers to the anonymous narrator (claimed), 1862Papers passed on (claimed)The Beale Papers printed and sold in Lynchburg, 1885Pamphlet publishedClayton and George Hart dig near Buford's, 1897Hart brothers digCarl Hammer runs computer analyses of the ciphers, 1960Hammer's computer analysesGillogly publishes the alphabetical runs found by applying the Declaration key to cipher 1, 1980Gillogly's alphabetical runsNickell publishes his archival and linguistic investigation, 1982Nickell's archival searchNSA releases seventeen documents from its Beale files, 2021NSA files releasedCryptologia publishes a reproducible re-examination of ciphers 1 and 3, 2026Hsieh's reproducible re-testThe anonymous author of The Beale Papers, 1885: Ciphers 1 and 3 are book ciphers like cipher 2 and give the place of a hoard buried near Buford's and the names of its thirty owners.Papers 1885Carl Hammer, 1971: Computer analysis shows ciphers 1 and 3 are not random numbers and probably encode intelligible text.Carl Hammer 1971James J. Gillogly, 1980: Decoding cipher 1 with the Declaration key gives runs such as "abcdefghiijklmmnohpp", so cipher 1 was built from the Declaration and encodes nothing.James J. Gillogly 1980Joe Nickell, 1982: No Thomas J. Beale fits the story, Morriss did not keep the hotel until 1823, the letters use words of a later date, and the pamphlet's author was most likely James B. Ward.Joe Nickell 1982Louis Kruh, 1982: The story contradicts itself (the order of the ciphers, the logistics of moving tons of metal), and the narrator and "Beale" write alike, so the pamphlet is a hoax.Louis Kruh 1982Peter Viemeister, 1987: Census and other records show several Virginia-born men named Thomas Beale who could be the pamphlet's Beale.Louis Kruh, 1988: Further comparison of the prose shows the narrator and the Beale letters were written by one person.Louis Kruh 1988Viktor Wase, 2020: In bases prime to 10 the last digits of ciphers 1 and 3 become uniform, a sign of numbers made up by a person counting in base 10.Viktor Wase 2020Viktor Wase, 2020: Ciphers 1 and 3 depart further from Benford's law than cipher 2, do not share its distribution, and may share one with each other: either both were faked the same way or they share a key.Viktor Wase 2020Leonardo Campanelli, 2022: Cipher 2 follows a form of Benford's law that ciphers 1 and 3 do not, so either they are fake or they were made by a different method.Campanelli 2022Ming-Yu Hsieh, 2026: Caesar, Vigenère, autokey, Beaufort, columnar transposition and every 2 x 2 Hill cipher fail to read ciphers 1 and 3, and Gillogly's runs favour deliberate construction over encryption by at least 100 to 1.Ming-Yu Hsieh 2026

What is known

Nothing outside the pamphlet confirms its story. Joe Nickell searched Virginia records in 1982 and found no Thomas J. Beale who fits; he found that Robert Morriss, who was a real Lynchburg innkeeper, did not take over the Washington Hotel until 1823, three years after the pamphlet has Beale lodging there, and that the letters attributed to Beale use "stampeding" and "improvised" in senses not recorded in English until after 1830⁠[4]⁠[7]. Louis Kruh noted that the numbering of the ciphers does not match the order in which the story needs them, asked how Beale could have expected cipher 2 to be solved first, and compared the Beale letters with the narrator's prose⁠[5]⁠[8].

Treasure hunters have dug across Bedford County since the 1890s, most intensively around Montvale (the old Buford's), on private land and sometimes without leave; Virginia law gives found treasure to the finder, which has not reduced the digging⁠[9]. No deposit has been found. The afterlife of the story in fiction and television is large and adds nothing to the record⁠[10].

What has been tested

The second cipher's decoding is reproducible and is not in doubt; what is tested is whether the other two are ciphers at all. Carl Hammer of Sperry Univac ran the numbers through computers in the 1960s and 1970s and reported that ciphers 1 and 3 showed non-random structure consistent with enciphered text; the Beale Cypher Association he led circulated "Historical and Analytical Studies" in 1970 and 1972, now in the NSA release⁠[2]⁠[3]. Gillogly's 1980 test cut the other way: decoding cipher 1 with the same Declaration key that works for cipher 2 produces, among gibberish, the run "abcdefghiijklmmnohpp" and other alphabetical stretches. The probability of that by chance is negligible, and the natural explanation is that whoever made cipher 1 was picking numbers off a numbered Declaration while running his eye down the alphabet, not encoding a message⁠[6]. It has been argued that the doubled letters in the run fall where the pamphlet's numbering of the Declaration miscounts, which would tie the construction of cipher 1 to the same flawed key⁠[6]⁠[3].

Later statistical work has tested the ciphers against Benford's law, against the distributions expected of book ciphers on English, and, in 2026, against families of composite constructions, with a reproducible pipeline and explicit cautions against over-reading anomalies⁠[11]⁠[12]⁠[13]. The NSA release shows that agency cryptanalysts also examined the ciphers and left no solution⁠[2].

The readings

The pamphlet's own reading is that the ciphers are genuine, that cipher 1 names a place and cipher 3 thirty names and addresses, and that a key text exists for each⁠[1]. It predicts that a key will eventually turn them into English, and that the names in cipher 3 will match real people of 1820s Virginia. Its difficulty is that no key has been found in 140 years of searching, that the book-cipher method is sophisticated for the setting, and that Gillogly's strings are hard to reconcile with honest encoding⁠[7]⁠[6].

The hoax reading holds that the pamphlet is a work of fiction written in the 1880s, most likely by Ward or someone near him, in the mode of Poe's "The Gold-Bug", with cipher 2 built to be solvable and ciphers 1 and 3 built from the same numbered Declaration to look like ciphers. It predicts exactly what has been found: no documentary Beale, anachronisms in the letters, one author's style throughout, and alphabetical runs when the Declaration key is applied to cipher 1⁠[4]⁠[5]⁠[6]. It does not explain why ciphers 1 and 3 might show non-random structure, if they do, which is why the recent statistical papers matter⁠[12]⁠[13].

A middle reading is that a real local legend or a real box of papers existed and that the 1885 author dressed it up; it predicts that some element (Morriss, Buford's, a Beale family in the region) will be found in the record, as Morriss has been, without any of the treasure story being true⁠[4].

Published claims

Published claims and their status
YearWhoClaimedStatusReason
1885The anonymous author of The Beale Papers⁠[1]Ciphers 1 and 3 are book ciphers like cipher 2 and give the place of a hoard buried near Buford's and the names of its thirty owners.Disputed: Reviewers disagree about itDisputedNo key has read either cipher in 140 years, and the Declaration key turns cipher 1 into alphabetical runs that honest encoding would not produce⁠[6]⁠[13].
1971Carl Hammer⁠[15]Computer analysis shows ciphers 1 and 3 are not random numbers and probably encode intelligible text.Disputed: Reviewers disagree about itDisputedLater tests find the structure Hammer saw fits numbers picked by hand from a numbered Declaration better than encryption⁠[14]⁠[13].
1980James J. Gillogly⁠[6]Decoding cipher 1 with the Declaration key gives runs such as "abcdefghiijklmmnohpp", so cipher 1 was built from the Declaration and encodes nothing.Accepted: Passed its tests and two independent reviewsAcceptedHsieh reproduced the runs in 2026 and put the odds at 100 to 1 or more for deliberate construction over encryption⁠[13].
1982Joe Nickell⁠[4]No Thomas J. Beale fits the story, Morriss did not keep the hotel until 1823, the letters use words of a later date, and the pamphlet's author was most likely James B. Ward.Likely: Best supported so far, not yet confirmedMost likelyThe record searches and anachronisms have not been answered, but nothing outside the text names Ward as the author⁠[4]⁠[8].
1982Louis Kruh⁠[5]The story contradicts itself (the order of the ciphers, the logistics of moving tons of metal), and the narrator and "Beale" write alike, so the pamphlet is a hoax.Likely: Best supported so far, not yet confirmedMost likelyThe internal problems stand unanswered and fit the statistical case against ciphers 1 and 3⁠[6]⁠[13].
1987Peter Viemeister⁠[16]Census and other records show several Virginia-born men named Thomas Beale who could be the pamphlet's Beale.Disputed: Reviewers disagree about itDisputedNone of these men has been placed in Lynchburg or Bedford County in 1820 to 1822, and Nickell found no one who fits⁠[4]⁠[3].
1988Louis Kruh⁠[8]Further comparison of the prose shows the narrator and the Beale letters were written by one person.Likely: Best supported so far, not yet confirmedMost likelyIt agrees with Nickell's comparison, though no study has tested the text against a control set of 1820s and 1880s writers⁠[4].
2020Viktor Wase⁠[14]In bases prime to 10 the last digits of ciphers 1 and 3 become uniform, a sign of numbers made up by a person counting in base 10.Likely: Best supported so far, not yet confirmedMost likelyIt has not been challenged and agrees with the other tests of 2020 to 2026, but it is a single conference paper⁠[11]⁠[13].
2020Viktor Wase⁠[11]Ciphers 1 and 3 depart further from Benford's law than cipher 2, do not share its distribution, and may share one with each other: either both were faked the same way or they share a key.Accepted: Passed its tests and two independent reviewsAcceptedCampanelli found the same split between cipher 2 and ciphers 1 and 3 by a different Benford test in 2022⁠[12].
2022Leonardo Campanelli⁠[12]Cipher 2 follows a form of Benford's law that ciphers 1 and 3 do not, so either they are fake or they were made by a different method.Accepted: Passed its tests and two independent reviewsAcceptedThe result agrees with Wase's and has not been disputed; it does not choose between its two explanations⁠[11].
2026Ming-Yu Hsieh⁠[13]Caesar, Vigenère, autokey, Beaufort, columnar transposition and every 2 x 2 Hill cipher fail to read ciphers 1 and 3, and Gillogly's runs favour deliberate construction over encryption by at least 100 to 1.Likely: Best supported so far, not yet confirmedMost likelyThe code and data are public and no rebuttal has appeared, but the paper is weeks old and states its own residual uncertainty⁠[13].

What would settle it

A decoding of cipher 1 or 3 with a published key that yields coherent English would settle it in favour of genuine ciphers, whatever is then found in the ground. Against: a document from the 1880s showing the pamphlet's composition, a manuscript draft, a printer's record or a letter by Ward, would close the question of authorship, and an archival census of Thomas Beales in Virginia and Missouri from 1810 to 1830 would close the question of the hero. Short of those, the most useful work is statistical: a published, reproducible test of whether ciphers 1 and 3 carry the structure of real book ciphers or of numbers drawn from a numbered text, which is what the 2020 to 2026 papers attempt⁠[11]⁠[13]. Digging settles nothing, because the pamphlet gives no spot to dig.

Questions

0 of 5 questions are answered.

Key questionsAll 5
0
0 of 2 sub-questions answered·0
Most likely: ciphers 1 and 3 were made up from the same numbered Declaration to look like ciphers; they encode nothing
0
0 of 1 sub-questions answered·0
Most likely: james B. Ward, the named agent, wrote the narrative, the letters and the ciphers

Evidence 24 findings

Artifacts

The films, photos, papers and objects this mystery rests on, each with its own key and its distance from the original.

ArtifactsSee all 11
Photo1 step from object
Unknown author · Public domain (published in the US before 1930)
Document1 step from object
National Security Agency · mixed (agency records; the press clippings and private papers keep their own copyright)
See all 11 artifacts

See also

References

  1. 1.anonymous 1885. The Beale Papers, Containing Authentic Statements Regarding the Treasure Buried in 1819 and 1821, Near Bufords, in Bedford County, Virginia, and Which Has Never Been Recovered. J. B. Ward (agent), Virginian Book and Job Print, Lynchburg.cited 24 times hereSRC0CR7HPKM5FDS
  2. 2.National Security Agency 2021. The Beale Papers (declassified document release). NSA Historical Releases, 15 July 2021.cited 6 times hereSRC0CR7HRSY1FWE
  3. 3.Wikipedia contributors n.d.. Beale ciphers. Wikipedia.cited 12 times hereSRC0CR7HS1R2T20
  4. 4.Nickell, J. 1982. Discovered: The Secret of Beale's Treasure. Virginia Magazine of History and Biography 90(3): 310-324.cited 16 times hereSRC0CR7HQJW3XSN
  5. 5.Kruh, L. 1982. A Basic Probe of the Beale Cipher as a Bamboozlement. Cryptologia 6(4): 378-382.doicited 3 times hereSRC0CR7HQ38405S
  6. 6.Gillogly, J. 1980. The Beale Cipher: A Dissenting Opinion. Cryptologia 4(2): 116-119.doicited 9 times hereSRC0CR7HPVE5HNT
  7. 7.Schmeh, K. 2017. The Top 50 unsolved encrypted messages: 40. The Beale cryptograms. Klausis Krypto Kolumne (scienceblogs.de).cited 3 times hereSRC0CR7HSHC2KEC
  8. 8.Kruh, L. 1988. The Beale Cipher as a Bamboozlement, Part II. Cryptologia 12(4): 241-246.doicited 2 times hereSRC0CR7HQB269MA
  9. 9.Virginia Places (Charles A. Grymes) n.d.. Beale Treasure. virginiaplaces.org.cited 5 times hereSRC0CR7HS9J3XMQ
  10. 10.Dooley, J. 2019. The Beale ciphers in fiction. Cryptologia 43(4): 344-358.doicited 1 time hereSRC0CR7HRJ40KS0
  11. 11.Wase, V. 2020. Benford's law in the Beale ciphers. Cryptologia 45(3): 282-286.doicited 2 times hereSRC0CR7HQTP25C1
  12. 12.Campanelli, L. 2022. A statistical cryptanalysis of the Beale ciphers. Cryptologia 47(5): 466-473.doicited 1 time hereSRC0CR7HR2G3PW3
  13. 13.Hsieh, M. 2026. A reproducible re-examination of Beale ciphers B1 and B3: systematically closing the composite-cipher hypotheses, with methodological cautions. Cryptologia 50(5): 550-561.doicited 4 times hereSRC0CR7HRAA08YB
  14. 14.Wase, V. 2020. The Role of Base 10 in the Beale Papers. Proceedings of the 3rd International Conference on Historical Cryptology, HistoCrypt 2020, Linköping Electronic Conference Proceedings 171: 153-157.doicited 1 time hereSRC0CR7HVFW1AM0
  15. 15.Hammer, C. 1971. Signature simulation and certain cryptographic codes. Communications of the ACM 14(1): 3-14.doicited 2 times hereSRC0CR7HV083HNE
  16. 16.Viemeister, P. 1987. The Beale Treasure: A History of a Mystery. Hamilton's, Bedford, Virginia.cited 1 time hereSRC0CR7HV821EMA
Last edited 27 Oct 2026
Private beta Downloads are for beta members

We're in a private beta while we get things right. Everything here is free to read; downloading datasets, sources and code is open to members for now.

It takes a couple of minutes. We'll reply by email.