It’s my understanding that mass produced items are all basically the same. If you buy something like a toothbrush, for example, then any other toothbrush from that same assembly line is going to be basically the same and have all the same specs (with the exception with minor defects here and there), because the machinery and process to make any those toothbrushes are all basically the same.
But that can’t be the case with locks and keys. Because if every lock and key were the same then there’d be no point in having them. Anyone could just bought the same key/lock combo could use it to unlock your front door. So all or most keys and locks must be unique. So how are they mass produced in a way that preserves their uniqueness?


Modern locks utilize sets of spring-loaded brass pins to function.
As seen in the diagram, the key raises the bottom pins in the pin stack to the shear line so that the cylinder plug may turn, activating or deactivating the locking mechanism.
These pins come in different lengths, and can be swapped out to change the key. That’s how they mass manufacture locks that aren’t all on the same key. It’s the same line for lock cylinders, but they use different pins and keys in assembly.
That said, there are only so many combinations of depths a key can have. Most residential keys have 5 cuts, and each cut has around 7 possible depths. So, the combinations aren’t infinite but they are varied enough that a large residential area, all using the same type of lock, shouldn’t have any repeats. And if it does, who’s going around testing their key in every door?
A lock only keeps an honest person out. The point of a lock is to make it too much of a hassle for a potential thief to bother breaking in.