Privacy

Two-Factor Authentication App: How It Works and Which to Pick

An authenticator app turns your phone into a second key: a code that changes every 30 seconds and cannot be phished by text-message tricks. Here is how it works and which app fits you.

Cysoro Security TeamPublished · 9 min read
2FA482 917expires in 24 sAPPROVE PRIVACY Two-factor auth apps A code that beats a stolen password.
Quick answer

A two-factor authentication app generates a six-digit code that changes every 30 seconds, based on a shared secret and the current time under RFC 6238. It beats text-message codes because the code is generated on your device, not sent over a phone network. Pick the app whose backup you will actually set up: Google for simplicity, Microsoft for work, 2FAS or Aegis for open source, Proton for desktop.

Key takeaways

  • Authenticator apps beat text-message codes: the code is generated on your device, not sent over a phone network.
  • Backup matters more than the app: set up encrypted backup or save recovery codes before you lose your phone.
  • Passkeys and security keys beat authenticator apps against phishing, so use them where a site offers them.

A password alone is not enough. If it leaks in a breach, anyone can use it. A two-factor authentication app adds a second check that changes every 30 seconds — a code only your phone can generate — and it is the single cheapest upgrade most people can make to their accounts.

What is a two-factor authentication app?

A two-factor authentication app, often called an authenticator app, is software that generates a one-time code you enter after your password. The code is usually six digits, changes every 30 seconds, and works for the specific account it was set up for.

CISA describes this as a software token, one of the main categories of multi-factor authentication, alongside something you know (a password), something you have (a token or phone), and something you are (a fingerprint). The app is the "something you have" part. Popular apps include Google Authenticator, Microsoft Authenticator, 2FAS, Aegis, Proton Authenticator, and Ente Auth, and all of them are free for personal use.

How does a two-factor authentication app work?

The app uses TOTP, the time-based one-time password algorithm defined in RFC 6238. CISA ranks software tokens above SMS in its guide to multifactor authentication. When you enable two-factor authentication, the service shows a QR code that contains a shared secret. You scan it with the app, and from then on both sides independently compute the same code from that secret and the current time.

RFC 6238 sets the default time step at 30 seconds and recommends that a code is accepted only once. The code is generated on your device, so it does not travel over a phone network and does not need an internet connection — your phone clock just needs to be roughly correct. If the clocks drift too far, codes stop matching, which is why keeping automatic time on matters.

How a TOTP code is made 1Scan onceQR code stores ashared secret 2Add the timecurrent time in30-second steps 3ComputeHMAC, then take6 digits 4Matchserver computesthe same code RFC 6238: TOTP = HOTP(secret, time step). No network needed.
TOTP in four steps: one shared secret, plus the time, makes a code both sides can compute. Illustration by Cysoro.

Is an authenticator app safer than SMS codes?

Yes, clearly. SMS codes are sent over a phone network, and CISA ranks SMS as the weakest form of MFA: messages are not encrypted, they can be intercepted by someone with access to a carrier network, and they can be redirected by SIM swapping, where an attacker convinces your carrier to move your number to their SIM.

Authenticator codes are generated on your device and never sent anywhere, so there is nothing to intercept in transit. CISA ranks software tokens above SMS and email codes, and physical FIDO tokens and passkeys above software tokens. The practical rule is simple: use an app instead of SMS wherever a service offers the choice, and use a passkey or security key where it offers that.

Authenticator apps compared

Every app here generates the same standard TOTP codes, so any of them works with any site that supports authenticator apps. What differs is backup, platforms, and extra features. All are free for personal use.

AppBest forPlatformsBackup or syncOpen source
Google AuthenticatorSimplicityiPhone, AndroidSync to Google AccountNo
Microsoft AuthenticatorMicrosoft and work accountsiPhone, AndroidCloud backup, per platformNo
2FASOpen source with easy backupiPhone, AndroidEncrypted backup to iCloud or Google DriveYes
AegisAndroid privacyAndroidEncrypted local exportYes
Proton AuthenticatorDesktop and mobileiPhone, Android, Windows, Mac, LinuxEnd-to-end encrypted syncYes
Ente AuthSync across phone and computeriPhone, Android, desktop, webEnd-to-end encrypted syncYes
Apple PasswordsiPhone ownersiPhone, iPad, MaciCloud KeychainNo
AuthyMulti-device synciPhone, AndroidEncrypted cloud backupNo

Backup details come from each vendor's own documentation and support pages, checked in November 2026. Microsoft notes that an iPhone backup cannot be restored on Android, or the reverse, so check the fine print before you switch phones.

Google Authenticator — best for simplicity

Google Authenticator is the app many sites name in their setup instructions. It is simple, free, and since April 2023 it can sync codes to your Google Account, so they follow you to any phone you sign in on. If you want nothing new to learn, start here.

Its weakness is that it does little beyond codes: no desktop app, no encrypted export beyond the account sync, and no push approvals. That is fine for most people, and a reason to pick a richer app if you want those features.

Microsoft Authenticator — best for Microsoft and work accounts

Microsoft Authenticator is the natural pick when your organization signs in through Microsoft Entra ID. It supports push approval with number matching on top of codes, which stops the "approve every prompt" fatigue attacks that plain push approvals suffer from.

Its backup is cloud-based but platform-specific: an iPhone backup cannot be restored on Android, or the reverse, according to Microsoft's own documentation. If you switch platforms, set up your accounts again rather than assuming the backup will follow.

2FAS — best open-source pick for most people

2FAS is a free, open-source authenticator for iPhone and Android with the feature most people get wrong: encrypted backups to iCloud or Google Drive that you can protect with your own password. It works the same on both platforms, which makes switching phones painless.

It has no desktop app and no push approvals, but for TOTP codes it is the strongest all-round free choice, and its open-source code can be audited by anyone.

Aegis — best for Android privacy

Aegis is a free, open-source authenticator for Android only, built around local control: encrypted vaults, encrypted local exports, and no account required. It is the pick for people who want their codes stored on their device and nowhere else by default.

Its limit is platform: there is no iPhone version, so it does not suit people who switch between Android and iPhone. If you are Android-only and care about open source, it is hard to beat.

Proton Authenticator — best for desktop use

Proton Authenticator is a free, open-source, end-to-end encrypted authenticator that runs on iPhone, Android, Windows, Mac, and Linux. An account is optional, and sync is end-to-end encrypted where you use it.

It is the best pick if you want codes on a computer as well as a phone — for example, when you sign in on a laptop and do not want to reach for your phone every time. Authy used to offer desktop apps, but Twilio discontinued them, so Proton now fills that gap.

Ente Auth — best for sync across devices

Ente Auth is a free, open-source authenticator with end-to-end encrypted sync across phone, desktop, and web. It suits people who want the same codes on a phone, a laptop, and a browser, with the code available for audit.

Like Proton, its strength is sync done properly: encrypted before it leaves your device, so the service cannot read your codes. The trade-off is that you need an Ente account for sync, though local-only use is possible.

Apple Passwords — best for iPhone owners

If you only use Apple devices, the built-in Passwords app on iOS 18 and macOS Sequoia or later already has an authenticator. Codes sync through iCloud Keychain to devices signed in to the same Apple Account, and they autofill in Safari.

It is the lowest-friction option for Apple-only households, and you do not need to install anything. It does not help on Android or Windows, so mixed-device households should pick a cross-platform app instead.

Authy — best for multi-device sync, with a caveat

Authy, from Twilio, offers encrypted cloud backup and multi-device sync on iPhone and Android, and it has long been a popular choice. Its desktop apps were discontinued, so it is now mobile-only, and its history includes a well-publicized API incident, which is worth knowing before you choose it.

If you already use Authy and have backup enabled, it still works well. New users should weigh it against 2FAS or Proton Authenticator, which offer similar sync with open-source code.

Which two-factor authentication app should you pick?

Start from your devices, not from a ranking. Only Apple devices points to Apple Passwords. Android, or a chance of switching between Android and iPhone, points to Google Authenticator or 2FAS.

Mostly Microsoft personal or work accounts points to Microsoft Authenticator. Codes on a Windows, Mac, or Linux computer points to Proton Authenticator or Ente Auth. Already using Bitwarden? Its built-in authenticator keeps codes with your vault.

The deciding question is recovery: whichever app you pick, switch on its backup or sync before you need it, and save the recovery codes each service gives you when you enable 2FA. The best app is the one you can still get into after you lose your phone.

How to set up a two-factor authentication app

Setting up an app takes about two minutes per account. The steps are the same on almost every service, and you should do them on a trusted device over a connection you trust.

  1. Install your chosen app from your phone's official app store, and lock your phone with a PIN, fingerprint, or face unlock.
  2. Open the account's security settings and choose two-factor authentication, then "authenticator app" (not SMS) where you have the choice.
  3. Scan the QR code with the app, or type the setup key manually if scanning fails. Never share the QR code or setup key with anyone.
  4. Enter the code the app shows to confirm the setup works.
  5. Save the recovery codes the service shows you — print them or store them in a password manager, somewhere other than the phone itself.
  6. Turn on the app's backup or sync if it offers one, and test it by checking that a code appears after you sign in again.

Do your most valuable accounts first: email, banking, password manager, and cloud storage. Email matters most, because it can reset almost everything else.

Your 2FA setup checklist 1. Install the app and lock your phone 2. Enable authenticator app, not SMS, on email and banking first 3. Save recovery codes somewhere other than the phone 4. Turn on backup, and add a passkey where a site offers one
Four steps that decide whether 2FA saves you or locks you out. Illustration by Cysoro.

What should you do if you lose your phone?

Act in this order: use a recovery code to sign in, remove the lost phone from your accounts, and set up the authenticator on your new phone. If you have the app's encrypted backup, restore it on the new phone and check that codes work before you remove the old device from anywhere.

If you have no backup and no recovery codes, use each service's account recovery process, which usually involves identity verification and a waiting period. That is slow by design. It is also the reason to save recovery codes now, while you still can. If your phone was stolen, also sign out of sessions remotely and, for banking and email, contact the provider promptly.

Never share a code or a setup keyNo legitimate support team will ever ask for your authenticator code or your QR setup key. Anyone who asks for one is trying to get into your account.

If you suspect a lost phone was actually compromised, read our guide to knowing if your phone is hacked before you restore anything on a new device.

Common mistakes with authenticator apps

The most common mistake is setting up 2FA and skipping backup. The second is using SMS where an app was offered, because it was easier in the moment. The third is storing recovery codes only on the phone that holds the authenticator — if the phone is lost, the codes go with it.

Other mistakes include approving push prompts you did not request, which is how MFA fatigue attacks work, and entering a code on a login page you reached from a link in an email or text. Always go to the site yourself, and never approve a prompt you did not just trigger.

The bottom line

A two-factor authentication app is a small habit with a large payoff: a code that changes every 30 seconds, generated on your device, that makes a stolen password far less useful. Pick the app that fits your devices, turn on its backup, save your recovery codes, and enable it on email and banking first.

Check whether your passwords have already appeared in a breach with the free pwned password checker before you lock the account down with 2FA.

Generate a strong replacement with the password generator if any password has leaked. If a site offers a passkey, take it — it is the phishing-resistant step beyond the app.

Frequently asked questions

What is a two-factor authentication app?

It is an app that generates a one-time code you enter after your password. The code changes every 30 seconds and is based on a secret shared between the app and the service when you set up two-factor authentication. Common apps include Google Authenticator, Microsoft Authenticator, and 2FAS.

How does a two-factor authentication app work?

When you enable it, the service shows a QR code containing a secret. The app stores that secret, then combines it with the current time to generate a six-digit code. The service does the same calculation and accepts the code if it matches. This is the TOTP algorithm defined in RFC 6238.

Is an authenticator app safer than SMS codes?

Yes. SMS codes travel over a phone network and can be intercepted or redirected by SIM swapping. Authenticator codes are generated on your device and never sent anywhere. CISA ranks SMS as the weakest MFA method and software tokens above it.

What happens if I lose my phone with my authenticator app?

You need a recovery path: backup codes saved when you set up 2FA, an encrypted cloud backup from the app, or account recovery with the service. Without one, you may be locked out for days. Set up backup before you need it.

Do authenticator apps work without internet?

Yes. TOTP codes are generated from the secret and the time, so the app does not need a network connection. Your phone clock must be roughly correct, though, or codes will not match.

Can an authenticator app be hacked?

The codes themselves are short-lived and tied to one service, so stealing a single code is of limited use. The real risks are a stolen phone without a lock screen, a phished code entered on a fake login page, or a leaked setup secret. A lock screen and phishing-resistant passkeys reduce those risks.

Should I use a passkey instead of an authenticator app?

Use a passkey where a site offers one. Passkeys are bound to the real website, so a fake login page cannot reuse them, while a TOTP code can be phished in real time. Keep the authenticator app for sites that do not support passkeys yet.

Sources

  1. IETF — RFC 6238: TOTP: Time-Based One-Time Password Algorithm
  2. CISA — Why a Strong Password Isn't Enough: Your Guide to MFA
  3. NIST — Digital Identity Guidelines (SP 800-63B)
  4. FTC — Use two-factor authentication to protect your accounts
  5. Google — Get verification codes with Google Authenticator
  6. Microsoft — Download Microsoft Authenticator
Written & fact-checked byCysoro Security Team

The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.

  • Email authentication
  • Phishing & BEC
  • Domain & DNS security
  • Small-business security

Checked against RFC 6238, CISA MFA guidance, NIST SP 800-63B, and the FTC's two-factor guidance.

How we write and fact-check →

See where your domain stands

Free for up to 3 domains. No card, no installs.

Start free