Electronic locks work using an electrical current to either lock or unlock the door. Depending on whether the lock is "fail-safe", also known as "power to lock" or "fail-secure", also known as "power to open", supplying the lock with power will either activate or deactivate the mechanism.