How things work

How a combination lock knows the code

A working model of the three-wheel lock on a safe door, with the back cover off. Every wheel moves only when the dial really would have picked it up.

The dial

00

Set a different code

What is simplified

In short

A safe dial is linked to a stack of wheels, the wheel pack, each with a notch called a gate. Turning the dial in different directions picks up and positions the wheels one by one. When the correct numbers have been entered, every gate lines up. A small bar, the fence, can then drop into the aligned gates, which frees the mechanism that holds the bolt. If any wheel is out of place, the fence is blocked and the bolt stays locked.