Skip to content
TechBone
Security & privacy

Two-Factor Authentication (2FA): Definition & explanation

In a nutshell

Two-factor authentication secures a login with two independent proofs, typically a password plus a code or device. Even if the password leaks, the account stays protected.

How does Two-Factor Authentication (2FA) work?

With 2FA, a password alone is no longer enough to log in. After entering the password (factor 1: knowledge), the service requires a second, independent proof (factor 2: possession or biometrics). Common second factors include an SMS code, a one-time code from an authenticator app, a push confirmation on the smartphone, or a biometric trait like a fingerprint. The key is independence: an attacker who only knows the password gets nowhere without the second element. Many services offer 2FA optionally, while some now require it, such as banking apps or sensitive cloud accounts. Modern variants like passkeys replace the classic password-plus-code model with cryptographic keys bound directly to the device, largely eliminating phishing risk. 2FA mainly protects against credential stuffing, data leaks, and phishing attacks where login credentials end up in the wrong hands. Setup usually happens once in the account settings, after which the second factor is confirmed at every new login or new device.

Advantages of Two-Factor Authentication (2FA)

  • Protects even if the password is stolen
  • Makes phishing harder
  • Quick setup in account settings
  • Multiple methods to choose from
  • Boosts trust for sensitive accounts

Disadvantages of Two-Factor Authentication (2FA)

  • Extra step at every login
  • SMS codes vulnerable to SIM swapping
  • Problematic if the device is lost
  • Not all services offer it

Frequently asked questions

Passkeys and authenticator apps are considered safer than SMS codes because they can't be intercepted via SIM swapping. Hardware security keys like FIDO2 tokens currently offer the strongest protection.

Guides with Two-Factor Authentication (2FA)

No linked guides for this term yet.

Related terms