What Is a Cryptex? The Da Vinci Code Myth and the Real Letter Lock

A cryptex is a fictional device from Dan Brown’s 2003 novel The Da Vinci Code: a stone cylinder with lettered dials that guards a papyrus message. Leonardo never made one, but the lock inside the idea is real, and centuries old.

2003

the cryptex appears in The Da Vinci Code

1550s

Cardano describes a lock that opens to a seven-letter word

1583

a letter padlock goes down with the Ann Francis off south Wales

Key takeaways

  • The cryptex is fiction. In the novel it’s a marble cylinder whose papyrus message is destroyed by a vial of vinegar if anyone forces it.
  • The novel credits Leonardo da Vinci with the design; there’s no evidence he made one, or the vinegar trick.
  • The real ancestor is the letter (ring) combination lock: lettered rings that release a shackle only when the right word is lined up.
  • A 13th-century casket from northern Iraq had four lettered dials; Cardano described a seven-letter lock in the 1550s; small letter padlocks of about 1550 to 1650 turn up in English fields.
  • The same principle, moved inside a lock case and behind a dial, became the combination lock on safes and vaults.
Small dark copper-alloy padlock with an arched shackle and a barrel of five turning rings, shown from the side and from one end
A copper-alloy combination padlock of about 1550 to 1650, found in Telford and Wrekin; its stamped symbols are worn away. Teresa Gilmore (Birmingham Museums Trust) for the Portable Antiquities Scheme / Trustees of the British Museum, CC BY-SA 4.0, via Wikimedia Commons (cropped).

Cryptex at a glance

What it isA fictional portable vault in Dan Brown’s novel The Da Vinci Code (Doubleday, 2003)
In the storyA polished marble cylinder with lettered dials; a papyrus scroll inside is rolled round a glass vial of vinegar (fiction)
Leonardo linkClaimed in the novel; no evidence he designed it
First real oneMade in 2004 by the craftsman Justin Kirk Nevins
FilmThe Da Vinci Code, directed by Ron Howard, opened the Cannes Film Festival on 17 May 2006
Real ancestorThe letter, ring or puzzle combination lock
Oldest example we foundA brass casket with four lettered dials, Jazira, northern Iraq, first half of the 13th century
First European description we foundCardano’s De subtilitate, 1550s: a lock that opens only to its seven-letter word
In BritainSmall copper-alloy letter padlocks of about 1550 to 1650, found by metal detectorists
DescendantThe dial combination lock, patented in the US from 1843

So the short answer to “what is a cryptex?” is: a prop in a thriller, built on a very real lock. The novel, published by Doubleday in 2003, made it famous.1 The German Spy Museum in Berlin, which covers it in its collection pages, puts it plainly: the vault was “a figment in the imagination of the author Dan Brown”.2 We found no use of the word “cryptex” older than the book. The lettered rings, though, go back at least eight centuries.

What the cryptex is in The Da Vinci Code

Everything in this section is fiction. In the novel the cryptex turns up in a bank’s safe deposit box: a polished white marble cylinder, opened by lining up the right letters to spell a password. Inside, a papyrus scroll is wrapped round a thin glass cylinder of vinegar. Force the cryptex and the glass breaks, and the vinegar ruins the message before anyone can read it. The story says the design comes from Leonardo’s journals and that the character Jacques Saunière built cryptexes as a hobby.31

It’s a clever plot device because it removes the obvious shortcut. A thriller hero with a hammer would ruin the story, so Brown made smashing the thing pointless. The plot then turns on guessing words, which is where a letter lock always gets its drama. Real letter locks never came with a vial of vinegar: their only defence was the number of possible words.

Did Leonardo da Vinci invent the cryptex?

No, as far as anyone can show. The novel names Leonardo as the inventor, but the German Spy Museum notes that there is also “no evidence that he invented the self-destruct mechanism”, and that combination locks were around long before he was born in 1452.2 The museum adds that a physical cryptex was first made in 2004, by the craftsman Justin Kirk Nevins, a year after the book came out.2

The lock itself has a much longer paper trail than Leonardo’s name suggests, and we’ll follow it below. The irony is that the real history would have suited Brown well: it’s full of mathematicians, codebreakers and couriers.

Leonardo da Vinci designed the cryptex.

The claim belongs to the novel. There’s no evidence Leonardo designed one, and the first real cryptex was made in 2004.

The vinegar vial was a real Renaissance security trick.

It’s part of the story. No source we read describes a historical letter lock with a self-destruct device.

Locks that open to a word are a modern novelty.

A casket with four lettered dials survives from the 13th century, and Cardano described a word lock in the 1550s.

“Cryptex” is an old name for these locks.

Older writers called them letter locks, puzzle locks or ring locks. We found no use of “cryptex” before 2003.

Sources for the myths: the German Spy Museum’s cryptex page,2 the Khalili casket record,4 Coumet’s study of the 16th-century texts5 and Tomlinson’s 1853 treatise on locks.6

How a real letter lock works

The best plain description is in the 1853 treatise on locks edited by Charles Tomlinson from the papers of A. C. Hobbs. It calls these “puzzle or letter-locks”, usually padlocks opened without a key: “The key to open it is a mnemonic or mental one, instead of one of steel or iron.”6

The principle is simple. A spindle sits inside a barrel, with lettered rings turning on the barrel. Each ring has a groove on its inside, and the spindle can only slide out when every groove lies in one straight line. The letters are just there to help the owner remember the setting chosen when the lock was closed. Turn the rings away and the grooves fall out of line, and the shackle stays put.6

Engraving of a seventeenth-century letter padlock with lettered rings on a barrel and a shackle
A 17th-century puzzle or letter lock, from Tomlinson’s Rudimentary Treatise on the Construction of Locks (1853). Public domain.

That’s the whole idea behind the cryptex, and behind the dial on an old safe. The cryptex simply turns the padlock inside out: instead of the rings freeing a shackle, they free the end of a tube. We keep to the principle here.

Lettered dials on a medieval casket

The oldest letter combination lock we could find described by its owning collection is on a brass casket inlaid with silver, made in the Jazira, northern Iraq, in the first half of the 13th century. The Khalili Collections record that its lid has four dials, “each with 16 letters in abjadi (numerical value) order”. The mechanism itself is gone, and the collection says only four other Islamic caskets with this type of lock are known.4

As a piece of design it’s lovely: the letters sit in neat rings on a lid already busy with inlaid figures, a lancer in one medallion and a falconer in the other. Whoever owned it kept the “key” in their head, some three centuries before Cardano wrote about one.

Letter locks in Renaissance Europe

The first European description we found is in Gerolamo Cardano’s De subtilitate, a book of the 1550s that the Wellcome Collection’s catalogue lists for its “combinatory alphabetical lock”.7 Cardano describes a lock made by one Ianellus that could be closed on any seven-letter name and opened only by that name. His example word was SERPENS. Once the lock was shut, Cardano wrote, the rings were turned freely so the word was scrambled.5

Mathematicians soon took an interest. In his Logistica, printed in Lyon in 1559, Jean Borrel (known as Buteo) worked out that a lock of four rings with six letters each has 1,296 possible settings, and argued that nobody should count on stumbling across the right one by chance.5 He backed it up with a line from Cicero about throwing knucklebones.

The link to secret writing came early too. Gustavus Selenus, the pen name of Duke Augustus of Brunswick-Lüneburg, reprinted Borrel’s passage at the end of his 1624 book on cryptography, the Cryptomenytices, filing locks alongside hidden messages. The Jesuit Caspar Schott called them “mathematical” locks, and Leibniz compared them with the lettered wheels of the Lullists in his De Arte Combinatoria.5 So a lock that guards a coded message isn’t such a strange idea after all. Three centuries later, the rotors of the Enigma cipher machine would be set like a combination too.

“till every one be known, The lock’s as fast as if you had found none.”

Thomas Carew, early 17th century, quoted by Tomlinson (1853)

The locks also turned up in English verse. Tomlinson quotes Beaumont and Fletcher’s play The Noble Gentleman, written in the early 17th century, with “a strange lock that opens with A·M·E·N”, and lines by Carew comparing something to “a lock that goes with letters”.6 (For more on locks and safes in books, see our round-up of safes in literature.) Tomlinson also reproduces an engraving of a seven-ring letter lock from Silvester Petrasancta’s Symbola Heroica, in an Amsterdam edition of 1682, with the motto “By chance or by labour”.6

By 1751 the French Encyclopédie sounded almost weary. Only the owner knows the one position of the characters that frees the pin, it said, and only a geometer patient enough to try every combination could hope to find it; unfortunately, such padlocks belonged to the sort of people who wouldn’t leave anyone the time.5

Letter padlocks found in Britain

Corroded copper-alloy padlock with an arched shackle over a barrel of rings stamped with letter-like symbols, beside a millimetre scale
A copper-alloy combination padlock of about 1550 to 1650 from Lincolnshire, with symbols stamped on its rings. Adam Daubney for the Portable Antiquities Scheme / Trustees of the British Museum, CC BY-SA 4.0, via Wikimedia Commons.

These weren’t only curiosities for scholars. Metal detectorists in England keep finding small copper-alloy combination padlocks, recorded by the Portable Antiquities Scheme and dated to about 1550 to 1650. They’re tiny: one from Telford and Wrekin is about 30 mm long and weighs 24.2 g, with five discs between two end plates and an arched shackle on top.8

Not all of them used letters. The rings of one from Lincolnshire carry stamped symbols, though the scheme’s record notes that comparable locks from Eyke in Suffolk and in the British Museum have letters instead; the British Museum’s example opens with the word MARCI.9 One found in Dorset has letters, asterisks and crosses mixed together on its rings.10

The best-dated one came out of the sand at Margam, near Port Talbot. The merchant ship Ann Francis, returning from Spain, was driven ashore there in a storm on the evening of 28 December 1583.11 The metal detectorist Peter Hughes recovered much of its hoard between 1996 and 2017, including a brass combination lock with four turning rings engraved with capital letters, which Amgueddfa Cymru (Museum Wales) bought in 2025.1211 It was found near Spanish silver coins and two coin weights, and probably secured a small chest of valuables.11

In November 2026 the museum and Cardiff University announced that CT scans had let them read the lock’s word without damaging it: ANCE. Nobody knows what it meant. “We are left wondering if the code meant something to its owner,” said the museum’s senior curator Alastair Willis.11 The lock is on show in the Tides of Treasure exhibition at the National Waterfront Museum in Swansea until June 2027.11 Of everything in this story, that small brass cylinder is the nearest thing to a real cryptex we found: a lettered lock on a box, guarding something now lost.

From letter padlocks to the safe dial

Early letter locks had one weakness their owners felt every day: the word was fixed by the maker. Tomlinson credits M. Regnier, director of the Musée d’Artillerie in Paris, with doubling the rings into concentric pairs so the owner could change the word at will. A German memoir he quotes says Regnier’s locks had steel rings “four, five, or eight deep”, and were trusted enough that couriers’ despatch boxes were usually fastened with them.6 In 1784 a Mr Marshall went another way and used a set of five lettered rings to guard the keyhole of an ordinary lock rather than a shackle.6

Not everyone was convinced. During the 1851 lock controversy, a newspaper piece quoted by Tomlinson recalled the French letter locks shown in 1844 and a joke in Le Charivari: the owner of such a lock “must have an excellent memory”, or he’d find himself shut out of his own house in the pouring rain.6 The joke still works.

The letter lock made it onto a British safe. The Liverpool merchant William Brown described in 1852 a lock he had invented from the idea of a letter padlock, with dials and pointers outside the door and wheels inside, and said one made for him by Mr Pooley had been in use on the safe of Brown, Shipley and Co. for 25 years.6 Brown believed nobody could pick it. Soon after the events in London, A. C. Hobbs, the American at the centre of the 1851 Great Lock Controversy, was shown the lock with the safe door shut, and according to a Liverpool newspaper the door “opened in a few minutes”.6

In America the idea went fully inside the lock case. Linus Yale and Charles Wilson of Springfield, Massachusetts, patented their combination safety-lock in 1843, a lock for doors and trunks in which the bolt only slides back when notched disks line up.13 By 1888 Thomas Spivey was patenting, for the Victor Safe and Lock Company of Cincinnati, a permutation lock with a combination changer.14 On safes, the lettered rings became numbered wheels behind a dial, and the rest is told in our guides to old safe combination locks and the history of lock mechanisms in safes.

Timeline

  • 13th century A brass casket from the Jazira, northern Iraq, is made with four lettered dials on its lid.
  • 1550s Cardano’s De subtilitate describes a lock that opens only to its seven-letter word.
  • 1559 Jean Borrel counts 1,296 settings for a lock of four six-letter rings.
  • 1583 The Ann Francis is wrecked at Margam with a letter padlock aboard.
  • 1624 Selenus files letter locks in a book on cryptography.
  • 1751 The French Encyclopédie describes the lettered padlock.
  • 1843 Yale and Wilson patent a combination lock for doors and trunks.
  • 1852 William Brown describes the letter lock on his Liverpool firm’s safe.
  • 2003 Dan Brown’s The Da Vinci Code introduces the cryptex.
  • 2006 The film opens the Cannes Film Festival on 17 May.

Why the cryptex caught on

A best-selling novel and then a film did most of the work. Ron Howard’s The Da Vinci Code, with Tom Hanks as Robert Langdon, opened the 59th Cannes Film Festival on 17 May 2006.15 By then craftsmen had already turned the prop into an object: the German Spy Museum dates the first real cryptex to 2004, the work of Justin Kirk Nevins.2 Replicas are still made and sold as gifts and puzzles; we don’t link to any.

Part of the appeal is that it looks like history. Brass, stone and engraved capitals read as Renaissance at a glance, and the letter lock really is a Renaissance object, which is why the story feels true. If you like containers that keep their secret through cleverness rather than steel, our page on puzzle boxes covers their wooden cousins.

Frequently asked questions

What is a cryptex?

A fictional portable vault from Dan Brown’s novel The Da Vinci Code (2003): a cylinder with lettered dials that opens only when a password is spelt out. In the story, a vial of vinegar destroys the papyrus message inside if it’s forced.

Did Leonardo da Vinci invent the cryptex?

No. The novel says so, but there’s no evidence he designed one or the vinegar mechanism. Letter combination locks existed before him and were described in print in the 1550s.

Is a cryptex real?

Only as a modern object made after the book. The German Spy Museum dates the first one to 2004. Its real ancestor, the letter padlock, is centuries old.

What was inside the cryptex in The Da Vinci Code?

In the novel, a papyrus scroll rolled round a glass vial of vinegar, so that forcing the cryptex would destroy the message. It’s fiction.

How old are letter combination locks?

A casket with four lettered dials survives from 13th-century northern Iraq. In Europe, Cardano described one in the 1550s, and English finds date from about 1550 to 1650.

What’s the difference between a cryptex and a combination lock?

A cryptex is a combination lock shaped as a container: the lettered rings free the end of a tube instead of a shackle or a bolt. The principle, rings that release only when a hidden groove lines up, is the same.

Sources:
  1. Dan Brown, The Da Vinci Code (New York: Doubleday, 2003), catalogue record via Internet Archive. A novel: everything said here about the cryptex in the story is fiction. ↩︎
  2. Deutsches Spionagemuseum, Berlin, “The Cryptex” (collection page). ↩︎
  3. Shmoop, “The Da Vinci Code: Chapter 47 summary” (study guide to the novel). ↩︎
  4. The Khalili Collections, “Casket with the Remains of a Combination Lock”, Jazira, northern Iraq, first half of the 13th century, MTW 850. ↩︎
  5. Ernest Coumet, “Un texte du XVIe siècle sur les cadenas à combinaison”, Mathématiques et sciences humaines 22 (1968), pp. 33–37 (quoting Cardano’s De subtilitate in Richard Le Blanc’s French translation of 1556, Jean Borrel’s Logistica of 1559, Selenus’s Cryptomenytices of 1624, Schott, Leibniz and the Encyclopédie of 1751). ↩︎
  6. Charles Tomlinson (ed.), Rudimentary Treatise on the Construction of Locks, from the papers of A. C. Hobbs (London, 1853), chapter III “The puzzle-lock and the dial-lock” (with fig. 5), the chapter on Marshall’s secret escutcheon, and the chapter on lock-picking (Mr Brown’s letter-lock), via Project Gutenberg. ↩︎
  7. Wellcome Collection, Gerolamo Cardano, De subtilitate libri XXI (Basel: Ludovicus Lucius, 1554), catalogue record. ↩︎
  8. Portable Antiquities Scheme, record WAW-04DD90 (FindID 400843), combination lock, Telford and Wrekin, 1550–1650, record text and photograph via Wikimedia Commons (original: finds.org.uk). ↩︎
  9. Portable Antiquities Scheme, record LIN-80D373 (FindID 63751), combination padlock, Lincolnshire, 1550–1650, record text and photograph via Wikimedia Commons (original: finds.org.uk). ↩︎
  10. Portable Antiquities Scheme, record DOR-018F1B (FindID 802938), barrel padlock (combination), Dorset, c. 1550–1650, record text and photograph via Wikimedia Commons (original: finds.org.uk). ↩︎
  11. Nation.Cymru, “Scientists crack code of 400-year-old lock found on Welsh shipwreck”, 4 November 2026. ↩︎
  12. Amgueddfa Cymru, Museum Wales, Collections Online, “Post-Medieval copper alloy combination lock”, accession 2025.17H/2.6 (Morfa Beach, Margam; Ann Francis wreck). ↩︎
  13. US Patent 3,312, Linus Yale and Charles Wilson, “Combination safety-lock for doors”, 20 October 1843, via Google Patents. ↩︎
  14. US Patent 390,528, Thomas S. Spivey of Cincinnati, assignor to the Victor Safe and Lock Company, permutation lock with a combination changer, 2 October 1888, via Google Patents. ↩︎
  15. Al Jazeera, “‘Da Vinci’ opens Cannes festival”, 17 May 2006. ↩︎

The History of Safes letter

One old safe a month, in your inbox

Once a month I send one safe worth a closer look, the new maker histories and a find from the patent and advert collection. Nothing else, and you can leave with one click.

You'll get a confirmation email first. One email a month, unsubscribe any time. Privacy policy.

Hos Logo
Greg

I work in IT and I'm a designer at heart. I write this blog because safes turned out to be a surprisingly big slice of history and pop culture. Every article here is checked against period catalogues, patents and trade directories, and my favourite story is still the Great Lock Controversy of 1851.

Articles: 178

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.