Abstract: The invention concerns a lock system for a door, wall, chest, safe or cupboard, etc. The lock system is covered by a cover plate and has a bolt or pin which is linked to a main lever, designed to rotate about a pivot bearing, and which operates in conjunction with a holder plate or bolt. Rotation of the main lever depends on the motion of a first magnetic block mounted on the cover plate. The main lever has at least one bore designed to accommodate at least one locking pin associated with a second magnetic block mounted on the cover plate. The second magnetic block is designed to unlock the lock by pulling the locking pins out of the bores.