The lock on your front door is an idea thousands of years old, with one clever cut in it.
A wooden bolt with falling pins. Roman iron with a maze inside. Levers that had to rise to an exact height. A lock that jammed itself if you cheated. Thieves beat them all, one of them in 25 minutes in front of a crowd in 1851. Then a father and son went back to the very first design and cut every pin in two.
The mechanisms are simplified 3D teaching models, not replicas of surviving locks.
Sources: Ency