A lock keeps things safe. 
A lock keeps things safe. 

A pin tumbler lock is a very common way to stay safe. 
Most locks have five or six holes. These holes hold key pins of different lengths. Above the key pins are driver pins. Springs push these pins down into the plug. This stops the plug from turning. The spot where the plug and casing meet is the shear point.
To open the lock, you need the right key. The key has special cuts on it. When you slide the key in, it lifts the pins. If the key is right, the pins line up at the shear point. This lets the plug rotate freely. 
Some locks use a spacer pin. This is a third pin that sits between the others. These special locks can work with two different keys. One key might be for a single person. A master key can open many different locks. This is helpful in big buildings like hotels. Linus Yale Jr. helped make the design we use today.
The pin tumbler lock is a very common way to keep things safe. 
Inside the lock, there is a part called a plug that sits inside an outer casing. The plug has a hole called a keyway where you slide the key. Most locks have five or six holes drilled into the plug. These holes hold key pins of different lengths. Above those are driver pins, which are pushed down by springs. The spot where the plug and the casing meet is called the shear point. 
To open the lock, you must use a key with the right cuts. When the correct key enters, it lifts the pins to the exact right height. This makes the pins align perfectly at the shear point. Once they are lined up, the plug can rotate freely. This rotation moves a lever or cam to unlock the door. If the pins are not at the right height, the plug stays stuck. This simple way of working makes the lock very hard to open without help.
People have been making locks for thousands of years. Very old locks were found in the ruins of the Palace of Khorsabad in Iraq. These were built by King Sargon II between 721 and 705 BC. Even earlier locks might date back to 2000 BC in Egypt. In 1805, Abraham O. Stansbury got a patent for a double-acting lock in England. Later, Linus Yale Sr. invented a modern version in 1848. Finally, in 1861, Linus Yale Jr. created the design we use today.
Some special locks can work with more than one key. These are called master-keyed locks and are great for big buildings. In a hotel, a guest has one key for their own room. However, a manager has a master key that opens every door. These locks use a third pin called a spacer pin. The spacer pin creates a second shear point for the pins to meet. This allows two different keys to work on the same lock. This clever trick helps people manage many doors at once.
A pin tumbler lock is a highly effective security mechanism used to secure doors and containers. 
To understand how it works, you must look at the relationship between the plug and the outer casing. The plug is the inner part that rotates when a key is turned. It sits inside a cylindrical outer casing. A hole called the keyway allows the key to enter the plug. Inside the plug, several vertical holes are drilled to hold the pins. Each hole contains a key pin of a specific length. Above each key pin sits a driver pin, which is held down by a spring. The critical boundary where the plug meets the outer casing is called the shear point.
When no key is present, the spring pressure pushes the driver pins down into the plug. This causes the pins to straddle the shear point. Because the pins are stuck halfway between the plug and the casing, the plug cannot rotate. When you insert the correct key, the unique cuts on the key lift each pin to a precise height. This movement aligns the gap between the key pins and the driver pins exactly at the shear point. Once this alignment occurs, the plug is free to rotate, which activates a cam or lever to retract the bolt.

Modern locksmithing often utilizes specialized cylinder formats to improve convenience and security. For example, the Euro profile cylinder is very common in commercial buildings and on uPVC doors. One major advantage of these cylinders is that they can be unscrewed and replaced easily. A locksmith can change the cylinder without needing to alter the entire boltwork hardware. There are many standardized profiles, such as the British oval profile and the Swiss profile. These cylinders can vary in length to accommodate different door thicknesses. This modularity allows for complex systems where many different locks can use the same key format.
In large facilities like hotels or office buildings, master-keyed systems are frequently employed. These systems allow a single master key to open many different locks. For instance, a hotel guest has a change key that only opens their specific room. However, a building manager holds a master key that can open every door in the facility. This is achieved by adding a third pin called a spacer pin, or master wafer, into the pin chamber. The presence of this spacer pin creates two distinct shear points within the lock. One key aligns the first set of shear points, while the master key aligns the second set.
Despite their sophistication, pin tumbler locks have certain vulnerabilities that engineers work to fix. Some attackers use methods like lock bumping or snap guns to force the pins into place. To counter this, many high-security cylinders use specialized security pins. These include spool pins, which have a narrow waist, and serrated pins with tiny grooves. These modifications create an illusion of progress for an inexperienced picker. Another threat is lock snapping, where a thief uses pliers to break the cylinder. In the UK, police estimate that roughly 22 million doors could be at risk from this method. To prevent this, modern locks may include sacrificial sections designed to break away safely without allowing entry.
🖼️ Images & Media (2)
More to explore
✨ What else?
Related topics you might enjoy
🪜 Step back
Simpler topics to build understanding
What is Nepedia?
A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.