Skip to main content
VVertex Solutions
All toolsPDF ToolsImage ToolsText ToolsCalculatorsDeveloperBlog
VVertex Solutions

Browse tools for merging and compressing PDFs, resizing and converting images, formatting text and JSON, running calculators, and working with code.

Popular Tools

  • Mortgage Calculator
  • GPA Calculator
  • Tip Calculator
  • BMI Calculator
  • Percentage Calculator
  • EMI Calculator
  • Merge PDF
  • JSON Formatter

Categories

  • All tools
  • PDF Tools
  • Image Tools
  • Text Tools
  • Calculators
  • Developer Tools

Company

  • About
  • About the Author
  • Editorial Standards
  • How We Verify Tools
  • How Data Is Processed
  • Calculator Comparisons
  • Disclaimer
  • Privacy Policy
  • Cookie Policy
  • FAQ
  • Accessibility
  • Changelog
  • Terms of Service
  • Contact
  • Blog
  • RSS Feed

© 2026 Vertex Solutions. All rights reserved.

Free tools. No signup. Privacy first.

  1. Home
  2. Blog
  3. Two-Factor Authentication Basics: TOTP, SMS, Keys, and Recovery
Online Safetyinformational9 min readPublished 2026-05-12 · Last updated 2026-10-23

Two-Factor Authentication Basics: TOTP, SMS, Keys, and Recovery

A second factor stops most credential stuffing even when a password leaks, if you pick a method you can recover and you store the backup codes offline. A plain-language guide to MFA.

By Rehan Baqir

Quick answer

A leaked password is often not enough to take over an account when two-factor authentication requires a second factor the attacker does not have. Enable MFA on email and other high-value accounts first, and save the recovery codes before you replace the phone.

Two-factor authentication asks for two different kinds of proof before it lets you in, usually a password plus a code or a hardware key. A leaked password is often not enough to take the account when the attacker does not have that second factor. Turn it on for primary email first, because email can reset the other accounts. SMS stops many random guesses and is still weaker than an authenticator app or a hardware key, because of SIM swaps and intercepted texts. Use SMS when the site offers nothing else. Recovery codes are single-use, and they belong somewhere other than the phone you are protecting. The password that sits next to MFA can come from the password generator. This page also links the hash generator and the UUID generator.

Passwords show up in breach databases often. Services such as Have I Been Pwned make that visible, and "new login" alerts show how often reused credentials get tested. Changing the password helps. Two-factor authentication on email often stops the takeover because the attacker still lacks the second factor.

MFA (multi-factor authentication) is one of the highest-value security upgrades after unique passwords. People mix up SMS, app codes, and hardware keys, lose recovery codes in a junk drawer, and postpone setup until the next lockout ticket. This guide covers what to enable, in what order, and how to avoid locking yourself out.

For the password that pairs with MFA, see What Makes a Strong Password. For where to store credentials, see Password Managers vs. Browser Save.

What "second factor" means

Authentication factors fall into categories:

  1. Something you know: a password or a PIN
  2. Something you have: a phone, a hardware key, or a smart card
  3. Something you are: a fingerprint or a face

Two-factor means two different categories. A password and a security question are both things you know, so together they are still one category. A password plus an SMS code is two categories: knowledge, plus possession of the SIM. That possession is imperfect.

Multi-factor (MFA) sometimes means two or more factors. In consumer settings, "2FA" and "MFA" are used interchangeably.

The goal is that a password stolen from a breach cannot, by itself, unlock the account.

Methods ranked for typical users

| Method | Security | Convenience | Notes | |--------|----------|-------------|-------| | Hardware security key (FIDO2/WebAuthn) | Highest | Medium. You carry the key | Phishing-resistant | | Authenticator app (TOTP) | High | Good. Works offline | 6-digit codes rotate every 30s | | Push notification (app approve) | High | Very easy | Watch for MFA fatigue prompts | | SMS text code | Moderate | Easy | SIM swap risk | | Email code | Low to moderate | Easy | Weak if the email account itself is compromised | | Backup codes | Recovery only | N/A | One-time use each |

A practical order:

  1. Today, turn on any second factor the email account offers. A password-only email account is the one to fix first
  2. Move email and the password manager to an authenticator app or a key
  3. Replace SMS on high-value accounts where the site allows an app or a key
  4. Save recovery codes before you need them

TOTP authenticator apps

Time-based One-Time Password (TOTP) apps such as Google Authenticator, Microsoft Authenticator, Authy, 1Password's built-in generator, and Bitwarden produce six-digit codes synced to the server clock.

Setup flow:

  1. In account security settings, enable 2FA
  2. Scan the QR code with the app, or enter the secret manually
  3. Enter the current code to confirm
  4. Download the recovery codes. That step is required. It is not a footer you can skip

What you gain: the app works offline, on a plane. There is no SMS to intercept. Support is widespread.

What you can lose: the phone, with no backup, means a lockout. Mitigations:

  • A cloud backup of the TOTP secrets (Authy or 1Password). Understand the tradeoff of that backup
  • A second device enrolled
  • Printed recovery codes in a safe
  • A hardware key as an alternate factor

Clock skew breaks TOTP. Turn on automatic time on the phone.

SMS codes

Banks and older sites still default to SMS. It stops credential stuffing from attackers who do not have your phone.

Weak points:

  • SIM swap: an attacker ports your number
  • SS7 attacks: rare, and real at nation-state scale
  • Phone theft, if SMS previews on the lock screen

Use SMS when it is the only option. Prefer an app or a key on email, cloud storage, and the password manager, even when the bank still texts you.

Hardware security keys

YubiKey, Google Titan, and platform keys: you insert the key or tap NFC during login. The method is phishing-resistant when the site supports FIDO2/WebAuthn properly. A fake login page cannot reuse the cryptographic challenge.

Good fits: a Google account, a Microsoft work account, GitHub, Cloudflare, and the password manager's master unlock.

Carry two keys, one primary and one backup in a different place, or enroll more than one factor so a single lost key is not a catastrophe.

Push prompts

"Is this you logging in?" notifications are easy until MFA fatigue sets in. Attackers spam prompts until you tap Approve to silence the phone.

If you did not just try to log in, deny the prompt and change the password. Approving a prompt only to stop the noise is how the attack succeeds.

Number matching, where Google or Microsoft shows digits you must confirm on screen, reduces blind approval.

What to protect first

For most people, this order:

  1. Primary email. It resets everything else
  2. The password manager. It holds the other logins
  3. Cloud storage (Drive, iCloud, Dropbox): documents and photo backups
  4. Banking and payment apps
  5. Work SSO, Microsoft 365, or Google Workspace
  6. Social media tied to your identity or to ads billing
  7. Everything else, when you are bored on a Sunday

MFA on an abandoned forum does less than a hardened email account.

Recovery codes

When you enable 2FA, sites offer 8 to 10 single-use recovery codes. They are part of the setup, not an optional extra.

Store them:

  • Printed, in a home safe or a locked drawer
  • Separate from the laptop bag
  • Somewhere other than a screenshot on the phone you are protecting
  • Somewhere other than a plaintext email to yourself titled "codes"

Poor places to keep the only copy:

  • Only on the phone that dies in a pool
  • A shared Slack channel "for backup"

If the codes are used up or lost, vendor account recovery may take days. For consumer Gmail it can be impossible without a recovery setup you arranged earlier.

Passkeys

Passkeys use device biometrics (Face ID or a fingerprint) or a PIN, with public-key cryptography. You sign in without typing a password, and the sign-in resists phishing.

They often replace the password on sites that support them, so they are not the classic pattern of "password, then a second factor." Still enable MFA on email and on recovery accounts. A passkey on a shopping site does not help if an attacker resets that shop through email.

Passkey sync (Apple iCloud Keychain, Google Password Manager) is convenient. Know which cloud you are trusting.

Workplace MFA

Employers require an authenticator app or a key for VPN and email. A personal phone enrolled for work TOTP blurs the boundary. Use a separate profile, or the work MDM policy, if that is required.

Do not approve a work push login you did not start. Report it to security.

Lockouts to avoid

  • A new phone, the old phone factory-reset, no recovery codes, and no backup of the TOTP secrets
  • Switching authenticator apps without transferring the secrets
  • SMS as the only factor, then the number gets recycled to a stranger
  • 2FA turned on for the password manager, with the recovery codes stored inside that same vault

Once a year, log in with the backup method on purpose so you know it still works.

MFA and the clipboard

Some workflows still copy a TOTP code by hand. That overlaps with Clipboard Security for Sensitive Data. Prefer on-device autofill. The codes expire in 30 seconds anyway.

A 30-minute setup

  1. In the email provider's security settings, add an authenticator app
  2. Print the recovery codes, or store them offline
  3. On the password manager, enable 2FA and save the new recovery codes somewhere else
  4. Do the same for cloud storage
  5. Where an app is allowed, remove SMS as the only factor
  6. Register a hardware key if you own one

Log out and back in before you close the laptop.

When MFA still leaves a gap

These still get through:

  • Session hijacking after you are already logged in
  • Malware on the device after login
  • A support agent who resets the factors because someone talked them into it
  • You, approving a phishing push

Pair MFA with unique passwords, an updated OS, and skepticism toward unsolicited links, including Phishing PDF Attachments.

Sources

  • NIST SP 800-63B, Digital Identity Guidelines (Authentication): authenticator types and assurance levels
  • CISA, Turn On Multifactor Authentication: public MFA guidance
  • CISA, Secure Our World: layered cyber hygiene practices

Last reviewed: October 2026. Sources and scope clarified for accuracy.

Conclusion

Start with email. Use an authenticator app or a hardware key where you can. Use SMS where it is the only option the site gives you. File the recovery codes where a drowned phone cannot take them along.

Related Tools

Free browser-based tools referenced in this article.

Featured
Password Generator
Password generator using crypto.getRandomValues, with length and character sets you choose.
New
Hash Generator
Hash generator for MD5, SHA-1, SHA-256, and SHA-512 hex digests. Input stays in the page.
UUID Generator
UUID generator for random version-4 IDs via crypto.randomUUID. Not time-based UUID v1.

Key takeaways

  • Enable MFA on your primary email and password manager first. Those two accounts control password resets for everything else.
  • Prefer TOTP authenticator apps or FIDO2 hardware keys over SMS codes wherever a service supports them.
  • Store single-use recovery codes offline or in a separate vault before you lose or replace your phone.

Frequently Asked Questions

Common questions answered to help you get the most from this tool.

Two-factor authentication (2FA) requires two different types of proof to log in. Usually that is something you know (a password) plus something you have (a phone app code or a security key). You need both to open the account.

SMS 2FA is stronger than no 2FA for most people. It is weaker than an authenticator app or a hardware key because attackers can SIM-swap or intercept texts. Use SMS when it is the only option, and move to an app or a key when the site allows it.

Start with primary email, your password manager, cloud storage, banking, and work SSO. Those accounts can reset other accounts or hold sensitive data. Then enable 2FA on social media and on shopping sites that store payment methods.

Recovery codes are one-time backups for when you lose your phone or key. Store them offline, printed in a safe or in a separate encrypted vault, not in the same note as your password. Each code works once.

Passkeys are a different model. They are a phishing-resistant sign-in that uses device biometrics or a PIN, and they often replace the password. They can coexist with MFA on some platforms. A passkey upgrades the first factor. It does not secure the email account that can still reset everything else.

About the author

Rehan Baqir is the founder & editor of Vertex Solutions. He builds browser-based tools and writes guides about PDF workflows, calculators, image tools, and developer utilities. Article pages show their publication and update dates when available. Read the editorial standards and tool-testing method for the site's stated approach to content and verification.

More about Rehan Baqir →

two-factor-authenticationmfasecuritytotppasskeys
Back to all articles

On this page

  • What "second factor" means
  • Methods ranked for typical users
  • TOTP authenticator apps
  • SMS codes
  • Hardware security keys
  • Push prompts
  • What to protect first
  • Recovery codes
  • Passkeys
  • Workplace MFA
  • Lockouts to avoid
  • MFA and the clipboard
  • A 30-minute setup
  • When MFA still leaves a gap
  • Sources
  • Conclusion

Related Articles

  • How Browser-Based PDF Tools Protect Your Privacy
  • Clipboard Security for Sensitive Data: Copy, Paste, and What Stays Behind
  • Browser File Processing Risks, What Happens When You Upload More Than PDFs