The Orgin of Ancient Locks
From the dawn of modern civilization, our ancestors developed a need to keep their belongings to themselves by using mechanical devices known as locks. Initially, those locks were only simple knots made from rope or other materials (they were used only to detect if someone tried to open them), but as the time went on and new technologies were developed, true locks made from wood and metal started being used across the world. Modern day historians are unsure which ancient civilization was first to create mechanical locks, and many believe that Egyptians, Greeks, and Romans developed those skins independently from each other.
History of mechanical locks started over 6 thousand years ago in Ancient Egypt, where locksmith first managed to create simple but effective pin tumbler lock that was made entirely from wood. It consisted of the wooden post that was affixed to the door, and a horizontal bolt that slid into the post. This bolt had set of openings which were filled with pins. Specially designed large and heavy wooden key was shaped like modern toothbrush with pegs that corresponded to the holes and pins in the lock. This key could be inserted into opening and lifted, which would move the pins and allow security bolt to be moved.
During 1st millennia BC, locks finally started improving with the technologies and designs that were introduced by Greeks and Romans. Greek locks were commonly viewed as unsecure, but they gave inspiration to the Roman innovators who quickly managed to improve upon Greek and Egyptian locks by introducing metals as their primary materials. By utilizing iron locks, Romans were finally able not only to have very strong protection against brute-force attacks, but also keys were for the first time small that they could be worn in pockets, on as a pendant or even infused into rings. During this time wards were also developed, ensuring that only correct key with correct shape of projections can push corresponding pins before lock could rotate and throw the bolt.