History
From the beginning of humankind people have felt the urge to protect what they possess. They start by covering the entrance of their caves with stones; later they hid their gold and jewels in the ground.
Then they discovered locks. These were first made of wood and rope. They served the purpose well, although they were not so nicely designed. There is a lot of historical proof which certifies the use of locks long before we could imagine. Even in the Bible (Old Testament, Books of Judges) we have frequent mention of locks and keys.
Types
In modern society we have keys and locks for everything: the house, the office, the car, the bike. We even have more than one key for the same building; keys and locks are so much a part of our daily routine that we don't take them into consideration (or maybe we do that only when the ring of keys is too heavy to be placed in our pockets).
But we do give a lot of thought when we have to pick the type of lock or the type of key. Basically we are talking about mechanical locks (based on mechanical activation of the keys) electro-mechanical locks (can be both mechanical or electrical activated, but usually the key is replaced with numbered buttons that have to be pressed) and electrical locks (activated by a card key that has a particular code, programmed to be read by a card reader which is controlled by an automated central or a local processor).
How to pick the lock?
It is not as complicated as we think, but also not as easy as it appears in a lot of movies. Some say that this requires both art and science. We have to have a good knowledge of the lock mechanism and, some practice.
Firstly we insert a tension wrench in the lock (a screwdriver for example) and, with a slight pressure, turn the plug (the lock cylinder) like the proper key would have done (we have to figure out what is the normal direction for the key to be turned). It will help create a small place between the lock pins (placed inside the lock). Then we have to insert a lock pick in order to lift them up (like the proper key will do when inserted in the lock). Doing this and continuing to apply pressure on the tension wrench we will hear a slight click (made by the pins when they fall in the right position) and the lock will be unlocked.
For unsophisticated locks we can use a metal hair pin as a lock pick. But professional locksmiths need an adequate pick tools kit. Basically this contains a tension wrench (they have different shapes and sizes) and several picks(long pieces of metal which are curved up at one end). Some can use an electrical pick gun (contains long pieces of metal and when they vibrate push the pins up and unlock the lock).
Re keying lock
The process of re keying is quite simple (takes couple of minutes) and it shouldn't be confused with the process of replacing a lock. Actually it consists of disassembling the lock cylinder and replacing all the old lock pins with new ones, to match the new key. Then the cylinder is reinstalled in the lock!
When for example a member of the family loses the house key we can assume that a burglar has it. We should immediately re key the house lock to prevent a potential theft. It doesn't cost a lot in time and money, but it can spare us a big stress. The same procedure is advisable when moving into a new house/apartment.
The better the lock is, the harder it will be for a burglar to break in!
Jeff King is a technologist who writes on many consumer topics.
There's more about locks and safes at Safe'n'Locked