Skip to content

Two-Factor Authentication and Passkeys Explained

Compare SMS codes, authenticator apps, security keys and passkeys, and turn on the right one for each account.

  • By StackOverNews Team
  • Last updated
  • First published
  • 2 min read
  • Level: Intermediate

A password is something you know. Two-factor authentication (2FA, also called MFA or 2-step verification) adds something you have, such as your phone or a security key. An attacker who steals your password still cannot sign in without the second factor.

The four common methods

Method How it works Resists phishing?
SMS code A code arrives by text message No
Authenticator app An app on your phone shows a code that changes every 30 seconds No
Security key A small USB or NFC device you tap Yes
Passkey Your device proves who you are after a fingerprint, face or PIN check Yes

SMS codes

Better than no second factor, and available almost everywhere. The weaknesses: a code can be typed into a fake page, and a phone number can be moved to another SIM by someone who tricks your mobile provider.

Authenticator apps

The codes are generated on your phone, so they do not depend on your phone number. They can still be phished, because you type the code yourself and a fake page can pass it on.

Security keys and passkeys

These use cryptography that is tied to the real website’s address. A fake site at a different address gets nothing useful, even if you are completely fooled by it. That is why they are described as phishing-resistant.

A passkey replaces the password entirely. It is stored on your device or in your password manager and unlocked with your fingerprint, face or device PIN.

Which one should you use?

Use the strongest method each account offers:

  1. a passkey or security key, where available
  2. otherwise an authenticator app
  3. otherwise SMS codes

Do not postpone turning on 2FA because the best option is missing. Any second factor blocks the most common attack, which is someone signing in with a stolen password.

Turn it on for your key accounts

Start with the same accounts as in the password lesson: email, banking, then cloud storage and social media.

  1. Sign in and open the account’s security settings.
  2. Look for “Two-step verification”, “Two-factor authentication” or “Passkeys”.
  3. Follow the prompts for the strongest method offered.
  4. Save the backup codes. Store them in your password manager or on paper.

Do not lock yourself out

Losing your phone should not mean losing your accounts. Before you finish:

  • save the backup codes for every account
  • register a second method where possible, for example a passkey and an authenticator app
  • check whether your authenticator app backs up or transfers to a new phone

What you have now

A unique password and a second factor on each important account, plus the habit of checking messages before you click. Together, those three habits close the easiest ways into your accounts.

Sources

  1. Turn On MFA (cisa.gov)
  2. Passkeys (fidoalliance.org)
  3. Setting up 2-Step Verification (2SV) (ncsc.gov.uk)
  • 2FA
  • MFA
  • passkeys
  • accounts

Get new lessons by email

One short email when we publish a new tutorial or an important alert. No spam, unsubscribe any time.

Sign-up opens soon.