Magnetic Lock
A magnetic lock is a magnet that is created when an electrical current is passed through a wire with multiple coils around an iron core, or a solenoid (single coiled wire wrapped around a metal core). When the electrical current is disrupted the metal wire is no longer magnetized.