The invention relates to the technical field of locks, in particular to a lock suitable for outdoor and indoor magnetic
password wheels, which comprises a
password wheel main body, a key rack and a plurality of lock cylinder assemblies, the plurality of lock cylinder assemblies are arranged on the
password wheel main body, and the password wheel main body comprises an
alloy outer cover and an
alloy tail cover. A code wheel mandrel is rotationally connected between the
alloy outer cover and the alloy
tail cover, the lock cylinder assemblies sequentially penetrate through the code wheel mandrel, and a key ring
assembly is further arranged at the end, away from the alloy outer cover, of the alloy
tail cover. According to the device, the magnetic element is adopted to replace a traditional plastic sheet, rotation and locking of the password wheel are achieved through magnetic adsorption and a rotating mechanism, the innovative design endows a lock with smoother operation hand feeling, the abrasion problem caused by long-term mechanical friction is remarkably reduced, and due to the application of the
magnetic structure, the safety of the lock is improved. The service life of the lock is effectively prolonged, the maintenance requirement is reduced, and more convenient and durable use experience is provided for a user.