Cybersecurity

Two-Factor Authentication Explained: SMS, Authenticator Apps, Security Keys and Passkeys

Passwords alone are not enough. Two-factor authentication blocks most account takeovers — but not all methods are equal. Here is how SMS, apps, security keys and passkeys compare.

Two-factor authentication: a password field plus a second factor — phone code, authenticator app, security key and passkey fingerprint

Passwords get reused, guessed, leaked in data breaches and stolen through phishing. Two-factor authentication (2FA) — or more generally multi-factor authentication (MFA) — adds a second proof of identity, so a stolen password alone is not enough to get in.

The three kinds of factors

  • Something you know — a password or PIN.
  • Something you have — a phone, an authenticator app, a security key.
  • Something you are — a fingerprint or face scan, usually used to unlock a device-held key.

True MFA combines factors from different categories. Two passwords are not two factors.

Comparing the methods

MethodHow it worksStrengthsWeaknesses
SMS codeA one-time code is sent by text messageEasy, works on any phoneVulnerable to SIM swapping and interception; can be phished
Authenticator app (TOTP)An app generates a new 6-digit code every 30 secondsWorks offline; not tied to the phone numberCodes can still be typed into a fake site
Push approvalTap "Approve" in an appVery convenient"MFA fatigue" — attackers spam requests hoping for an accidental approval; number matching reduces this
Security key (FIDO2)A physical USB/NFC key confirms the loginPhishing-resistantMust be carried; buy a backup key
PasskeyA cryptographic key stored on your device or password manager, unlocked with fingerprint, face or PINPhishing-resistant, no password to steal, fastStill being adopted; plan recovery carefully

Why "phishing-resistant" matters

With SMS or app codes, a convincing fake login page can ask for your password and your code, then use both immediately on the real site. Security keys and passkeys are built on the FIDO2 / WebAuthn standards: the key is bound to the real website's domain, so it simply will not work on a lookalike site. That is why security guidance from organisations such as CISA and NIST favours phishing-resistant MFA for high-value accounts.

Any second factor is far better than none. Phishing-resistant factors are better still.

Passkeys in plain language

A passkey replaces the password with a pair of cryptographic keys. The private key stays on your device (or synced in your password manager); the website stores only the public key. When you log in, your device proves it holds the private key — after you unlock it with your fingerprint, face or PIN. There is no shared secret for the website to leak and nothing for you to type into a fake page.

Major platforms — Apple, Google and Microsoft — support passkeys, and many popular services now offer them.

Which accounts to protect first

  1. Email — it can reset every other password.
  2. Domain registrar and DNS — control of your domain means control of your website and email.
  3. Hosting, cloud and code repositories.
  4. Banking and payment services.
  5. Social media and advertising accounts.
  6. Admin panels of your website, store and business tools.

Rolling out MFA in a business

  • Enforce MFA centrally where possible (for example in Google Workspace or Microsoft 365) instead of relying on each person.
  • Prefer authenticator apps over SMS, and passkeys or security keys for administrators and finance.
  • Turn on number matching for push approvals.
  • Store recovery codes safely and register more than one factor, so a lost phone does not lock someone out.
  • Have a secure, verified process for resetting MFA — attackers target help desks too.

Adding MFA to your own application

If you run a web or mobile application with user accounts, offer TOTP and passkeys, rate-limit login and code attempts, require re-authentication for sensitive actions, and notify users when a new factor is added or a new device signs in.

Key takeaways

  • MFA stops most attacks that rely on stolen passwords.
  • Authenticator apps beat SMS; passkeys and security keys resist phishing.
  • Protect email, domain and admin accounts first.
  • Plan recovery so security does not become a lock-out.

How Wintecsys can help

We build secure authentication into websites and applications — including MFA and passkeys — and help businesses secure their email, domain, hosting and admin accounts.

See our security services or talk to us about secure logins.

Keep reading