1. A lock in which a pressure-based sensor is used and which is equipped with a locking mechanism that restricts the movement of the object that is to be unlocked, a movement restricting mechanism or a movement restricting electronic circuit that restricts the unlocking of the concerned object by the above-described locking mechanism, a pressure-based fingerprint sensor that detects the fingerprint pattern, a memory devices that stores registered fingerprint code data, a matching unit that determines whether the fingerprint code created from the fingerprint pattern sensed by the sensor matches with any of the registered fingerprint codes stored in the memory device, and a control unit that unlocks the locking mechanism through the above-mentioned movement restricting mechanism or electronic circuit, when the offered and a registered fingerprint codes match.