A device used to lock something that can be opened and closed.
A device that prevents the trigger of a gun, etc., from being pulled.