The principle of operation of the device is based on magnetic attraction. The lock has a block with an electromagnet and a striker made of metal with high magnetic permeability. The block with an electromagnet is installed on the door frame, and the striker is installed on the door. When power is applied, the lock magnetizes and holds the strike plate, locking the door. In the absence of power supply, the electromagnetic lock automatically opens.