How a lock works
A lock holds a bolt in place with parts that only the right key moves out of the way. Four benches take you from a wooden peg lock to the brass pins in most door locks today.
Key takeaways
- A lock holds a bolt or plug in place with parts that only the right key moves out of the way.
- In a wooden peg lock, prongs on the key lift loose pegs out of holes in the bolt. The prongs must be the right number and the right distance apart.
- In a pin lock, springs push pairs of pins across the shear line. The right key lifts each pair by exactly the right amount, so the gap between its two pins sits on the shear line.
- One pin that is a single step off is enough to block the plug.
- The number of possible keys is the number of depths to the power of the number of pins. Five pins and ten depths make 100,000, and fewer when neighbouring cuts are limited.
Sources
Most of these sites could not be opened while this page was written, so the facts were checked through search results that quote them. The wooden peg lock with a key that lifts pegs and the age of about 4,000 years at Khorsabad, the pin, spring, shear line and key pin and driver pin parts, Linus Yale Jr. and a small flat key in the 1860s, and the number of keys as depths to the power of pins each appeared in at least two places. The sources disagree on the Yale dates (1848 for his father, 1861 and 1865 for the son), so only the 1860s are given, and scholars question which find is the oldest lock. The key count with a limit on neighbouring cuts was checked by counting every key one by one. The locks on this page are toy models made for this page.
- Britannica: lock (security device)The wooden peg lock from Khorsabad.
- Potts: lock and key in ancient Mesopotamia (PDF)Why the oldest lock is still argued about.
- Wikipedia: pin tumbler lockPins, springs, plug and shear line.
- Wikipedia: Linus Yale Jr.The small flat key and the patents.
- Yale: historyPatents of 1861 and 1865.
- Lemelson-MIT: Linus YaleThe Yale lock shop and the early locks.
- LockWiki: pin tumblerKey pins and driver pins.
- Science ABC: how a pin tumbler lock worksHow the pins hold the plug, and how the key frees it.
- The Engineering Mindset: how padlocks workThe right key splits the pins at the shear line.
- LockWiki: differsKey combinations and the limit on neighbouring cuts.