An electronic lock is a locking device which uses some form of electronics to authenticate those accessing it, sometimes using two-factor authentication. Electronic locks are typically considered to be more secure than conventional mechanical locks and can boast additional useful features, e.g. auditing successful and failed access attempts.