A lock is a mechanical fastening device which may be used on a door, vehicle, or container, restricting access to the area or property enclosed. Commonly, it can be released by using a key or combination.