How a Key Opens a Lock
This page presents the basic workings of pin tumbler locks, and the vocabulary used in the rest of this booklet. The terms used to describe locks and lock parts vary from manufacture to manufacture and from city to city, so even if you already understand the basic workings of locks, you should look at figure below for the vocabulary.
The figure below introduces the vocabulary of real locks. The key is inserted into the keyway of the plug. The protrusions on the side of the keyway are called wards. Wards restrict the set of keys that can be inserted into the plug. The plug is a cylinder which can rotate when the proper key is fully inserted. The non-rotating part of the lock is called the hull. The first pin touched by the key is called pin one. The remaining pins are numbered increasingly toward the rear of the lock.
The proper key lifts each pin pair until the gap between the key pin and the driver pin reaches the sheer line. When all the pins are in this position, the plug can rotate and the lock can be opened. An incorrect key will leave some of the pins protruding between the hull and the plug, and these pins will prevent the plug from rotating.