An authenticator app is a mobile app that generates short, time-based one-time passcodes, usually six digits that change every 30 seconds, as a second step after your password. The app and the service share a secret key set up by scanning a QR code, and both sides calculate the same code from that secret and the current time, using the TOTP standard in RFC 6238.
Key takeaways
- An authenticator app generates six-digit codes locally from a shared secret and the current time.
- App codes beat SMS codes because they cannot be stolen by a SIM swap, but they are not phishing-proof.
- Save your backup codes and set up recovery before you lose or replace your phone.
You type your password, and the site asks for a six-digit code. You open an app, read the number, type it in, and you are in. That app is an authenticator app, and it is one of the simplest upgrades you can make to your online security.
What is an authenticator app?
An authenticator app is a mobile app that generates short, time-based one-time passcodes as a second step after your password. The code, usually six digits, changes every 30 seconds.
It is a form of two-factor authentication, or 2FA. Your password is something you know; the code proves you also have something, your phone, with the app on it. A thief who steals your password still cannot sign in without the current code.
Popular examples include Google Authenticator, Microsoft Authenticator, Authy, Duo Mobile, Proton Authenticator, 2FAS, and Ente Auth. Many password managers, including 1Password and Bitwarden, can also generate the same codes. The underlying standard is open, so most apps work with most services.
How does an authenticator app work?
When you set up an account, the service gives your app a secret key, usually by showing a QR code. Both sides then calculate the same code from that secret and the current time, using the TOTP standard in RFC 6238.
The process has four steps. First, you scan the QR code or type in the secret key, which stores the secret on your phone. Second, time is split into windows, usually 30 seconds. Third, the app combines the secret and the current time window with a standard calculation and turns the result into a six-digit code. Fourth, the server does the same calculation and checks that your code matches.
Because both sides already share the secret, nothing needs to travel over the network. The app works offline, in airplane mode, and abroad without roaming. If your phone clock drifts too far from the correct time, codes can stop matching, so keep automatic time turned on.
The standard behind this is TOTP, short for Time-based One-Time Password, defined in NIST SP 800-63B authenticator guidance and in RFC 6238, built on the earlier HOTP standard in RFC 4226. Any app and service that follow the standard can work together.
Authenticator app vs SMS codes: which is safer?
Authenticator app codes are safer than SMS codes. SMS codes travel over the mobile network and can be stolen by a SIM swap, while app codes are generated locally and never sent anywhere.
In a SIM swap, a scammer convinces your mobile carrier to move your number to a SIM they control, then receives your text-message codes. CISA now urges people to move away from SMS-based multi-factor authentication, noting that SMS is not phishing-resistant, and to use authenticator codes for less valuable accounts where stronger methods are not available.
That does not make authenticator apps perfect. A fake login page can still trick you into typing a code, and the attacker can use it within its 30-second window. CISA ranks FIDO passkeys and hardware security keys as the strongest form of multi-factor authentication, because they cannot be typed into a fake site.
| Method | Works offline | SIM swap risk | Phishing-resistant | Ease of use |
|---|---|---|---|---|
| Authenticator app (TOTP) | Yes | No | No | Easy |
| SMS code | No | Yes | No | Easy |
| Push approval | No | No | Mostly no | Easy |
| Passkey | Yes | No | Yes | Easy once set up |
| Hardware security key | Yes | No | Yes | Needs the key |
The practical rule is simple: use a passkey or security key for your most important accounts, such as email, banking, and password manager. Use an authenticator app everywhere else that offers it, and use SMS only when nothing better is offered.
How do I set up an authenticator app?
Pick an app, install it from your official app store, then turn on two-factor authentication in each account and scan the QR code it shows you. Save the backup codes before you finish.
- Install an app. Download Google Authenticator, Microsoft Authenticator, Proton Authenticator, 2FAS, or Ente Auth from the Apple App Store or Google Play. Avoid copycat apps with similar names.
- Open the account settings. In the service you want to protect, go to Security, then Two-factor authentication, and choose Authenticator app.
- Scan the QR code. Open the authenticator app, tap Add account, and point your camera at the QR code. If you cannot scan, type in the secret key shown below it.
- Enter the code. Type the six-digit code from the app back into the service to confirm the setup works.
- Save backup codes. The service will show one-time backup codes. Store them in a password manager or on paper in a safe place, not in a screenshot on your phone.
- Repeat for each account. Each account gets its own entry in the same app, with its own secret and code.
Set up your email account first. Email is the key to resetting most other accounts, so protecting it protects everything else. Then do banking, your password manager, and cloud storage.
Which authenticator app should I choose?
Choose based on backup and moving to a new phone, not on looks. The codes are the same in every app; what differs is what happens when your phone is lost, stolen, or replaced.
Google Authenticator is the simplest choice and can now sync codes to your Google account. Microsoft Authenticator is the natural pick if you use Microsoft or work accounts, with cloud backup to your Microsoft account on Android and iCloud on iPhone.
Proton Authenticator and Ente Auth are open-source options with end-to-end encrypted sync across devices, including desktop apps. 2FAS is another free, open-source option with backup to iCloud or Google Drive. Aegis is a popular open-source choice for Android power users, with encrypted local backups.
Password managers such as 1Password and Bitwarden can also store TOTP codes alongside your passwords. That is convenient, but it puts both factors in one place, so make sure the password manager itself is protected with a strong master password and a separate second factor. If you are choosing a manager, our free password generator can help you create that master password.
What if I lose my phone or get a new one?
Use your saved backup codes to sign in, then set up the authenticator app on your new phone and turn off the old one. If you planned ahead, this takes minutes; if you did not, it can take days.
Before you switch phones, check whether your app syncs codes to the cloud. Google Authenticator, Microsoft Authenticator, Proton Authenticator, and Ente Auth all offer some form of sync or backup. Turn it on, confirm it works, and only then wipe the old phone.
If your app does not sync, export your accounts before the switch. Some apps let you transfer codes by showing a QR code on the old phone and scanning it with the new one. Others need you to disable two-factor authentication on each account and set it up again.
If the phone is already lost, sign in with a backup code, revoke the old device in your account settings, and set up the app again. If you have no backup codes, use the service account recovery process and expect to prove your identity. Keep a second factor, such as a security key, for your email account so you are never locked out of everything at once.
Why is my authenticator code not working?
The most common cause is a wrong clock. TOTP codes depend on the time, so if your phone clock is off by more than a minute, the server will reject the code.
- Check the time. Turn on automatic date and time in your phone settings and try the next code.
- Wait for a fresh code. Enter the code early in its 30-second window, not in the last few seconds.
- Check the account. Make sure you are entering the code for the right account, especially if you have several similar entries.
- Use a backup code. If codes keep failing, sign in with a backup code and set up the authenticator again.
- Check for a duplicate entry. If you set up the same account twice, the old entry may show stale codes. Delete the duplicate.
If none of that works, the secret may have been reset by the service. Remove the account from the app, turn two-factor authentication off and on again in the service, and scan the new QR code.
Is an authenticator app safe?
Yes, for most people it is a large improvement over a password alone, and a clear improvement over SMS. It is not, however, the strongest option available.
NIST classes manually entered one-time passcodes as not phishing-resistant, because the code is not cryptographically bound to the real website. A convincing fake login page can capture a code and use it before it expires. That is a real risk for high-value targets such as executives, finance staff, and administrators.
For those accounts, use a passkey or a hardware security key instead. For everything else, an authenticator app is a good balance of security and convenience. Just remember the secret key is the crown jewel: anyone who copies it can generate your codes, so never share a QR code or secret key, and never set up an authenticator from a link in an email.
Should a small business use authenticator apps?
Yes. Require an authenticator app, or better, a passkey, for email, cloud storage, accounting, and admin accounts. That one rule blocks most password-only break-ins.
Start with the accounts that hold the keys to everything else: email, domain registrar, cloud admin, and banking. Then roll it out to staff with a short guide and a named person to help anyone who gets stuck. Keep a secure record of who has backup codes and how account recovery works if someone loses a phone.
Our small business cybersecurity checklist puts multi-factor authentication alongside backups, updates, and access control, so you can track the whole rollout in one place.
For phishing awareness, the spear phishing guide explains why codes alone do not stop a targeted attack.
The bottom line
An authenticator app is a free, offline code generator that adds a second factor to your logins. It beats SMS, it works with almost every major service, and it takes only a few minutes to set up.
Install one, turn it on for your email and banking first, and save your backup codes somewhere safe before you need them. If an account offers a passkey, take that instead; if it only offers an authenticator app, take that. Check your passwords are strong enough to protect with the password strength checker.
Frequently asked questions
What is an authenticator app in simple terms?
It is an app on your phone that shows a six-digit code that changes every 30 seconds. You type the current code after your password to prove you also have your phone, which is the second factor in two-factor authentication.
Is an authenticator app free?
Yes, the most widely used authenticator apps are free for personal use, including Google Authenticator, Microsoft Authenticator, Proton Authenticator, 2FAS, and Ente Auth. Some password managers include an authenticator as part of a paid plan.
Do authenticator apps need internet or mobile signal?
No. The codes are calculated on your device from a stored secret and the current time, so they work offline, in airplane mode, and abroad without roaming. You only need a connection to sign in to the service itself.
What happens if I lose my phone?
You use your saved backup or recovery codes, or the recovery method you set up in advance, such as a backup phone, a synced backup in the app, or account recovery with the service. Without a backup, recovery can take days and may require proving your identity.
Are authenticator apps safer than SMS codes?
Yes. SMS codes can be intercepted or stolen through a SIM swap, where a scammer moves your number to their SIM. Authenticator codes are generated locally and never travel over the mobile network, so that attack does not work against them.
Can an authenticator app be hacked?
The codes themselves are hard to guess because they expire in 30 seconds, but an attacker can still trick you into typing a code into a fake login page. That is why passkeys and security keys, which cannot be typed into a fake site, are stronger where they are offered.
Can I use one authenticator app for all my accounts?
Yes. Most authenticator apps support the open TOTP standard, so one app can hold codes for Google, Microsoft, Apple, Amazon, banks, and many other services. You add each account separately by scanning its QR code.
Sources
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.
Checked against NIST SP 800-63B authenticator guidance, CISA mobile communications guidance, and RFC 6238 TOTP documentation.
How we write and fact-check →