Part 7 · Home and Daily Life
Locks and Keys
How a lock works and how to build one — from a wooden pin lock that needs no metal at all, to forged iron warded locks, lever-tumbler locks and spring padlocks, the principle of the modern pin-tumbler lock, and fireproof safes. Locks protect seed, records, money and medicine, and making them trains the precise metalwork that machines need.
- Difficulty
- ●●●●●
- Time
- A day for a wooden pin lock; two to four days for a forged warded lock; a week or more for a lever lock
- Steps from zero
- 14 prerequisites →
This unlocks
Doors, Hinges, Handles and LatchesThe full path from nothing — 14 steps before this one
- Fire
- Cordage and Rope
- Stone Tools
- Finding and Preparing Clay
- Finding and Identifying Ores
- Hunting and Trapping
- Basic Woodworking
- Charcoal
- Hides and Leather
- Bellows
- Iron (the Bloomery)
- Blacksmithing
- Steel
- Springs
- Locks and Keys
Do them roughly in this order. See it on the tech tree →
Why it matters
As soon as a community stores anything valuable — next year's seed grain, medicines, tools, money, records (Writing and Numbers), dangerous chemicals — it needs a way to keep it from being taken or tampered with. A lock does not make a door unbreakable; a determined person with an axe can get through almost anything. What a lock does is make it slow, noisy and obvious to get in without the key, so honest people stay honest and dishonest ones are caught. That is enough for most needs.
Locks matter for another reason. A good lock is a small precision machine: springs, levers, sliding parts filed to fit within a fraction of a millimetre. Locksmiths were among the first clockmakers, gunsmiths and machinists. Learning to make a lever lock is a fine apprenticeship for clocks, precision machinery and Machine Tools.
How it works
Every lock has the same two parts:
- A bolt — a bar that slides out of the door or lid into a slot or hole in the frame (the keeper or staple), so the door cannot open.
- A guard — something that stops the bolt sliding back, unless it is moved out of the way in exactly the right way. Only the right key moves it correctly.
The kinds of lock differ only in the guard:
| Lock | The guard | How the key beats it | First known |
|---|---|---|---|
| Wooden pin lock | Loose pins drop by gravity into holes in the bolt | Pegs on the key lift every pin exactly clear | Ancient Near East and Egypt, before 700 BC |
| Warded lock | Fixed obstacles (wards) inside the lock round the key's path | Notches in the key's bit let it turn past the wards | Roman Empire |
| Spring padlock | Springy leaves on the bolt splay out inside the case | A key slides over and squeezes the leaves together | Roman, Chinese, Viking |
| Lever tumbler lock | A stack of sprung levers, each with a slot (gate), blocks a stud on the bolt | Steps on the key lift each lever exactly to its gate — not too high, not too low | 1778 |
| Pin tumbler lock | Split pins cross the line between a turning plug and its shell | Notches on the key lift each pin so its split sits exactly on that line | 1848–1861 |
The more different heights each pin or lever can have, and the more of them there are, the more different keys are possible — and the harder the lock is to open by guessing or picking. Five levers with five heights each gives 5 × 5 × 5 × 5 × 5 = 3,125 different keys.
What you need
| Item | For | Chapter |
|---|---|---|
| Hard, dry wood: oak, ash, box, hornbeam | Wooden locks; key blanks to copy | Basic Woodworking |
| Wrought iron and some steel | Lock plates, bolts, keys | Iron (the Bloomery), Steel |
| Spring steel | Bolt springs, lever springs, padlock springs | Springs |
| Brass or bronze (optional) | Small parts that must not rust | Bronze, Zinc and Brass |
| Forge, anvil, hammers, tongs | Shaping parts | Blacksmithing |
| Files — flat, round, square, small and fine | Most of the work | Files and Saws |
| Drills and punches, 2–8 mm | Holes for rivets and pins | Drills and Boring |
| Small rivets | Joining plates | Nails, Rivets and Wire Fasteners |
| Chalk, soot or a candle | Smoking a key to see where it touches | Lamps and Candles |
Where to find it
Every material here comes from earlier chapters. Iron comes from Iron (the Bloomery) smelting; spring steel from Steel, hardened and tempered as described in Springs. For wooden locks, choose straight-grained, dense, well-seasoned hardwood without knots; the bolt slides better if it is a different wood from the housing. For fireproof safes you need gypsum or fireclay (Firebrick and Refractories).
Method 1: The wooden pin lock
This lock needs no metal at all and is surprisingly secure. It is fixed on the inside of a door; you reach through a hand-hole in the door to put the key in.
- The bolt. A bar of hardwood about 45 cm long and 5 × 4 cm in section. Hollow out a channel along its underside from one end, about 2 cm wide and 2 cm high and 20 cm long — the key slides in here.
- The housing. A block 20 cm long, fixed to the door, with a square tunnel through which the bolt slides snugly. A keeper (a wooden staple) is fixed on the door frame for the end of the bolt to enter.
- The pins. With the bolt in the locked position, drill 4–6 vertical holes, about 1 cm across, through the top of the housing and on down into the bolt as far as the key channel. Space them irregularly. Make pins of hardwood, each long enough to fill its hole in the housing and drop 1.5–2 cm into the bolt.
- Cap the tops of the holes with a strip of wood so the pins can rise but not fall out.
- Make the key: a flat stick 25–30 cm long that fits the key channel, with pegs sticking up from its end, in exactly the same pattern as the pin holes. Each peg's height must lift its pin until the pin's bottom is exactly level with the top of the bolt — no more (it would jam in the housing), no less (it would still be in the bolt). The easiest way: push the key in, mark where each peg must go by pressing it up against the holes, then drill and fit pegs and trim them a little at a time until the bolt slides.
- Use: push the key into the channel under the pins, lift it so the pegs raise the pins, pull the key and bolt together to open, then lower the key and draw it out.
Vary the pegs' positions and their heights between locks, so that one key does not open another.
Method 2: The forged warded lock
The classic iron lock of chests and doors for 1,500 years. It is easy to make but easy to defeat; use it where you want to keep children and casual hands out, or combine it with a stronger lock.
- The lock plate: a sheet of iron about 12 × 10 cm, 2–3 mm thick (see Sheet Metal and Rolling). Bend up a rim round three sides (or rivet on strips) to make a shallow box 2 cm deep. Drill a keyhole 1 cm across in the middle, with a slot below it for the bit.
- The pin: rivet a short round iron pin (the drill pin) to the back plate, centred in the keyhole, if you are making a key with a hollow shank (a "pipe" key). For a solid key, leave a hole in the back plate as a bearing instead.
- The bolt: a flat iron bar 1 × 1.5 cm, 12–15 cm long, sliding in two guides (staples riveted to the plate). Near the keyhole, file a notch in its lower edge for the key's bit to catch, and file two small detent notches in its top edge, at the locked and unlocked positions.
- The spring: a leaf of spring steel (Springs) riveted to the plate, pressing a small tooth down into one or other detent notch, so the bolt stays put until the key moves it.
- The wards: thin curved strips of iron, riveted to the plate in the path of the turning bit — for example, a ring round the keyhole on the inside of the case, and a strip across the path of the bit's tip.
- The key — forge from a bar: draw out a shank 8–10 cm long and 8–10 mm thick, form a ring (bow) at one end for the fingers, and forge-weld or leave a flat bit 1.5 cm square at the other. File slots in the bit exactly where the wards are, so the bit can turn past them. To find the places, smoke the bit over a candle, turn it against the wards, and file where the soot is rubbed off.
- Fit the lock to the inside of a door (Doors, Hinges, Handles and Latches) or chest, with a keyhole through the wood and an iron escutcheon plate round it, and fix the keeper to the frame so the bolt enters it at least 2 cm.
Turning the key swings the bit round; the bit catches the notch in the bolt and pushes it along, lifting the spring tooth out of one detent and dropping it into the next.
Method 3: The lever tumbler lock
Robert Barron's lever lock of 1778 is far harder to open without the key, and it is still a standard lock for doors in many countries.
- Build the case, bolt and keyhole as for the warded lock, but give the bolt a short upright stud (stump) riveted to it.
- Make 3–6 levers: flat iron or brass plates about 5 × 2.5 cm and 1.5 mm thick, all pivoting on one pin at one end. Cut in each lever a gate — a window shaped like a squared-off "H" or "L" through which the stud can slide. The stud sits in the back pocket of the gate when locked and in the front pocket when unlocked; the narrow channel between them is the gate, and the stud can only pass when the gate is lined up exactly.
- Spring each lever down with its own small leaf or wire spring.
- The lever bellies: the edge of each lever that the key touches is filed to a different depth on each lever — this is what makes each lock different.
- Cut the key with one step for each lever, plus a final step for the bolt. Each step's height must lift its lever so that its gate lines up exactly with the stud. A lever lifted too far is as much in the way as one not lifted enough.
- Fit and test: cut the key steps a little too high, then file each step down a tiny amount at a time, testing after each stroke, until the bolt slides smoothly.
Method 4: A spring padlock
- The case: a tube of iron, 6–8 cm long and about 2 cm across, closed at one end except for a small slot.
- The shackle: a U-shaped iron bar. One leg is fixed to a sliding bolt that enters the open end of the tube. Rivet to this bolt two or three leaves of spring steel that splay outwards like an arrowhead.
- Locking: push the bolt into the tube. The leaves squeeze together going in, spring open once past a narrow collar inside the tube, and catch behind it.
- The key: a flat plate pushed in through the slot at the far end, with a hole of exactly the right shape to slide over the spring leaves and squeeze them together, so the bolt can be pulled out.
Make the leaves and the key hole of an unusual shape, and pack two or three sets of leaves of different shapes behind each other, so that only the right key compresses all of them.
The pin tumbler lock (the modern lock)
Every modern house key works this way. It is a precision object; build it once you have a The Lathe for metal and very fine files (Machine Tools).
- A cylinder (the plug) turns inside a fixed shell. Turning the plug moves the bolt by a cam on its back.
- Five or six holes are drilled straight through shell and plug. In each hole sits a pair of pins: a lower key pin (of different length in each hole) and an upper driver pin, pressed down by a small coil spring.
- With no key, every driver pin crosses the shear line between plug and shell and locks them together.
- The right key's notches lift each key pin exactly so that its top is level with the shear line. The driver pins are now all in the shell, the key pins all in the plug, and the plug turns.
- Pins 3 mm across, cut to lengths in steps of about 0.4–0.6 mm, and holes and plug fitted within a few hundredths of a millimetre: this lock needs a lathe, a drill press, fine gauges (Measurement from Scratch) and brass (Zinc and Brass).
Safes
A strongbox is an iron chest: sheet iron 3–6 mm thick riveted to angle iron at the corners, with a strong lid and two different locks, each with its own key held by a different person — a simple way of making sure no one person can open it alone. Bolt it to the floor or wall from the inside so it cannot be carried away.
A fire safe protects papers from fire. Paper chars at about 175–230 °C. Build a double-walled box: an inner box and an outer one with a gap of 5–8 cm between them, filled with plaster of Paris mixed with water (Gypsum and Plaster of Paris) — or fireclay, ash and sawdust. Set plaster holds about a fifth of its weight in chemically bound water; in a fire that water slowly boils off as steam, holding the inside near 100 °C for an hour or more. Fit a stepped lid that overlaps the body so flame cannot go straight through the joint.
How to tell it worked
- The right key opens the lock smoothly 50 times in a row without sticking.
- A different key, and a bent piece of wire, do not open it after several minutes of trying.
- The bolt goes at least 2 cm into the keeper, and the door cannot be lifted or wiggled open.
- A padlock cannot be pulled open with a strong tug.
Note Troubleshooting. Key turns but bolt doesn't move → the bit is missing the bolt notch; lengthen the bit or deepen the notch. Key jams halfway → a ward or lever is catching; smoke the key and file where it rubs. Wooden lock sticks in wet weather → wood has swollen. Ease the bolt and housing, rub them with beeswax or tallow, and store the door out of rain. Lever lock opens only sometimes → a lever gate is just on the edge; file that key step to put the gate in the middle of the stud. Spring breaks → it was left too hard. Temper springs to a blue colour, about 300 °C (Springs). Bolt drifts open on its own → the detent spring is too weak or its notch too shallow.
Dangers
Danger Children trapped in chests and safes suffocate. A child who climbs into a chest with a spring lock, a strongbox or a disused safe can be locked in and die within hours. Fit chest locks that need a key to lock, not just to open; remove the lids or locks from chests and boxes no longer in use.
Danger Never lock people in. Rooms where people gather or sleep — houses, workshops, schools, halls — must always open from the inside without a key. Locked exits have killed hundreds in fires.
- Forge and file work: see Blacksmithing for burns and eye protection; springs and hardened parts can snap and fly when bent or quenched.
- Keys: keep a spare key in a separate, trusted place. A lost key to a seed store in spring is a disaster.
What this unlocks
Locks secure granaries (Granaries and Food Storage), treasuries and records (Money, Trade and Record-keeping, Libraries and Preserving Knowledge), medicine and dangerous chemicals. Making them trains the skills — springs, levers, filing to fit, small rivets — that lead to the The Mechanical Clock, firearms locks, the The Typewriter and Precision and Interchangeable Parts. The combination lock, the time lock and the modern safe are later refinements of the same few ideas.
How it was first done
The oldest surviving lock, a wooden pin lock, was found in the ruins of the Assyrian palace of Khorsabad near Nineveh and dates to about 700 BC; the same design was widely used in ancient Egypt and is still found in parts of North Africa and the Middle East. The Romans made iron warded locks and small keys, some worn as finger rings, and spring padlocks; similar spring padlocks were used in China and throughout medieval Europe. In 1778 Robert Barron in England patented the double-acting lever tumbler lock; Joseph Bramah's lock of 1784 resisted all picking attempts until the American locksmith Alfred Hobbs opened it in 1851, the same year he also picked Jeremiah Chubb's famous "detector" lever lock (1818). In the United States Linus Yale Sr. patented a pin tumbler lock in 1848, and his son Linus Yale Jr. developed the small cylinder lock with a flat, notched key in the 1860s — the lock still used on most front doors today.
Source: content/entries/home/locks-and-keys.md