Electronic locks are locking fixtures that lock and unlock by use of an electric current. This current can use a solenoid, electromagnet or motor, and the choice of fail-safe or fail-secure is available. Fail-safe locks unlock automatically if the power cuts, whereas fail-secure locks will stay locked.