What is two-factor authentication? Two-factor authentication is an essential part of online security. Here's what it is and how it works.