Free, independent guides since 2010

Security & privacy

Two-factor authentication and passkeys explained

How two-factor authentication and passkeys protect your accounts: SMS codes, authenticator apps, hardware keys, passkeys, recovery codes and which accounts to protect first.

<guide section="Security & privacy" type="article" read="1 min"/>

A stolen password is useless to an attacker who also needs your phone or security key. Two-factor authentication (2FA) blocks the vast majority of automated account takeovers. Passkeys go one step further and remove the password altogether.

The methods compared

MethodSecurityPhishing-resistant
SMS codeBasicNo
Email codeBasic (depends on your email security)No
Authenticator app (TOTP)GoodNo
Push approval in an appGood, with number matchingPartly
Hardware security keyVery goodYes
PasskeyVery goodYes

Passkeys

A passkey is a cryptographic key pair: the private key stays on your device or in your password manager, the website only stores the public key. You log in with your fingerprint, face or device PIN. Because a passkey only works on the real website’s domain, a fake login page cannot capture it.

Which accounts first

  1. Email – it can reset every other password.
  2. Domain registrar and DNS provider.
  3. Hosting and server accounts.
  4. CMS admin accounts.
  5. Payment providers and bank.
  6. Social media and advertising accounts.

Adding 2FA to your own website

Most CMSs support 2FA for administrators, often through a plugin. Require it for every account with editor or admin rights (see user accounts and access and WordPress security).

Frequently asked questions

Is SMS two-factor authentication still worth using?

Yes, it is much better than nothing. But SMS can be intercepted or redirected through SIM swapping, so prefer an app, security key or passkey for important accounts.

What happens if I lose my phone?

Use your recovery codes or a second registered method to get back in. That is why you should always set up a backup method.