Lock
A lock was a device used to secure the door of a room. Someone who was skilled at unlocking them was called a lockpick. 

In 1986, a time traveling James T. Kirk shot the lock on the Mercy Hospital's operating room with his phaser to keep the doctors from interfering with Leonard McCoy's treatment of Pavel Chekov's middle meningeal artery. ()

The Andorian Thy'lek Shran confined his hostages into the meditation room at the Vulcan monastery at P'Jem by using a door lock. ()

In 2151,  used a lock pick to open the door to the curio shop in a city on the Akaali homeworld. ()

Em/3/Green noted that the locks on the Skorr temple had timed-triggers. ()

Types 
 Auto-relock tumbler
 Combination lock
 Delgorian locking mechanism
 Magnetic lock
 Tire lock
 Tripartite microsealing mechanism

External link 
 
Security technology