Tech

Explainer

Updated

What is two-factor authentication?

Key facts

It adds a second proof of identity to a password, and the FTC compares the common second factors and calls security keys the strongest method.

Two-factor authentication is a way to sign in that needs two separate proofs of identity. The two come from different categories, and the second can be a code sent to your phone, a code from an app or a physical security key. The National Institute of Standards and Technology (NIST) defines it as "Proof of the possession of a physical or software token in combination with some memorized secret knowledge." The FTC says a password alone is vulnerable because hackers use phishing, reused passwords from data breaches and password guessing.

The three categories of sign-in proof

The FTC sorts authentication factors into three categories: something you know, something you have and something you are. A password, PIN or security question is in the first. A one-time passcode, an authenticator app or a security key is in the second. A fingerprint, face or retina is in the third. An account with two-factor authentication asks for a credential from two of the three categories.

Common second factors compared

The FTC lists the common methods in the order below and says which of them it considers safer. The table follows that ranking.

Second factorWhat the FTC says about itSource
One-time passcode by text message or emailTypically six digits, good for one sign-in and expires automatically. Hackers can take over a phone number through a SIM card swap attack. It is better than nothing, but an app or key is safer when offered.FTC
Authenticator appGenerates a passcode that is not exposed to a SIM card swap or to someone hacking your email. Some apps can also send a push notification to approve or deny a sign-in.FTC
Security keyA physical device, plugged into USB or held near a phone for NFC. The FTC calls it the strongest method.FTC

The FTC names Google Authenticator, Microsoft Authenticator and Duo as examples of authenticator apps.

What a reader meets next

Text and email codes depend on another account. A passcode sent by email is only as protected as the email account it arrives in. The FTC advises using a strong password and two-factor authentication on that email account too.

Some sign-ins can be remembered. After setup, many services offer to remember the device you use. The FTC advises allowing this only for your own devices, and not on a public computer such as one at a library.

Scammers ask for the code. The FTC warns that scammers try to trick people into giving up a verification passcode, whatever story they tell. A code should not be shared with anyone you did not contact first.

How two-factor differs from multi-factor authentication

The FTC says two-factor authentication is "sometimes called two-step verification or multi-factor authentication," so the names overlap in everyday use. The FTC's own definition is the one used on this page: a credential from two of the three categories. Multi-factor authentication is covered on its own page. Hackers often try to get the password and the code by tricking the user, which is explained on the phishing page.

The FTC advises turning it on first for the most sensitive accounts, such as bank, email, social media, tax filing and payment apps, and then adding it to other accounts. The setting is usually called two-factor authentication, two-step verification or multi-factor authentication in the account settings.

Have another question?