What is two-factor authentication?

Two-factor authentication, or 2FA, is a sign-in that asks for two different kinds of proof: usually your password, plus a code from your phone, a passkey or a security key. Someone who steals your password still can’t get in without the second factor.

It is the most common form of multi-factor authentication, which NIST defines as “an authentication system that requires more than one distinct type of authentication factor for successful authentication.”

Also called: 2FA, Two-step verification, Multi-factor authentication (MFA)

Updated November 2026. Sources are numbered and listed at the end.

The three kinds of factor

Security standards sort proofs of identity into three kinds: something you know, such as a PIN or password; something you have, such as a token or a device; and something you are, such as a fingerprint.1 Two-factor authentication means two of these kinds, not two of the same. A password plus a security question is still one factor, because both are things you know.

CISA says that using multi-factor authentication “makes you 99% less likely to be hacked”, because “even if one credential becomes compromised, unauthorized users will be unable to meet the second authentication requirement.”2

The kinds of 2FA, compared

Common second factors, and whether each one resists phishing.
MethodHow it worksPhishing-resistant
Text message codeA code is sent to your phone numberNo, and exposed to SIM swaps
Authenticator appAn app shows a new code every 30 secondsNo
Push promptYou approve a sign-in on your phoneNo
Passkey or security keyYour device signs in with a key tied to the real siteYes

Authenticator apps use an open standard called TOTP, which turns a shared secret and the current time into a short-lived code.3 Text message codes depend on the phone network, and NIST marks them as restricted: services that offer them should offer another option too, and watch for signs such as a SIM change or a ported number.4

Which 2FA stops phishing

A phishing page can ask for your code just as easily as your password, then pass both to the real site within seconds. NIST says codes you type in “SHALL NOT be considered phishing-resistant because the manual entry does not bind the authenticator output to the specific session.”4 The methods that do resist it bind the sign-in to the real site’s name, which is what WebAuthn, the standard behind passkeys and security keys, does.4

CISA names FIDO/WebAuthn as the phishing-resistant authentication that is widely available today, and says that any MFA is better than no MFA.5 So turn on whatever a service offers today, and move to a passkey or a security key where you can.

How to set it up

  1. Open the security settings of the account, and look for two-factor authentication, two-step verification or sign-in options.
  2. Add a passkey or a security key if the service supports one. Otherwise, point an authenticator app at the QR code it shows.
  3. Save the recovery codes the service gives you somewhere safe and offline, so losing your phone doesn’t lock you out.
  4. Start with your email account. Password resets for everything else go there, so it is the one an attacker wants most.

Sources

  1. NIST Computer Security Resource Center, Glossary: multi-factor authentication, definitions from NIST SP 800-63-4 and NIST SP 800-171r3.
  2. CISA, Multifactor authentication.
  3. IETF, RFC 6238: TOTP, Time-Based One-Time Password Algorithm (May 2011).
  4. NIST, SP 800-63B-4: Authentication and Authenticator Management, sections 3.1.3.3 and 3.2.5.
  5. CISA, More than a password (November 2022).

Checked November 2026. Secria facts are from our Mail and VPN pages and the whitepaper.

Questions about two-factor authentication

Is two-factor authentication the same as multi-factor authentication?

Two-factor authentication is multi-factor authentication with exactly two factors. Multi-factor authentication covers two or more. In everyday use the terms mean the same thing.

Can 2FA be hacked?

Codes can be phished, and text message codes can be stolen with a SIM swap. Passkeys and security keys resist phishing because they only work on the site they were made for. Any 2FA still stops someone who only has your password.

Is SMS 2FA better than nothing?

Yes. CISA says any MFA is better than no MFA. If a service offers an authenticator app, a passkey or a security key, those are stronger choices.

What happens if I lose my phone?

You sign in with a recovery code, a second registered key, or the service’s account recovery. Set up a backup method and keep your recovery codes before you need them.

Does Secria support two-factor authentication?

Yes. Every Secria account can add a second step at sign-in with an authenticator app, a passkey or a security key such as a YubiKey.