Online Locksmithing Diplomas: Locksmithing began as the science and art of making and defeating locks. A lock is a mechanism that secures buildings, rooms, cabinets, objects, or other storage facilities. A key is often used to open a lock. Means of opening a lock may include two-factor authentication for greater security, such as requiring both something you know (a combination) and something you have (a key or keycard).