In short
With an authenticator app, signing in requires your password and a one-time code. TOTP codes usually change every 30 seconds; the interval depends on the service settings. Turn it on in the site's security settings: choose an authenticator app, save the secret key in PasswordX or another authenticator, confirm with a code and save the backup codes.
Even a strong password can leak with a site's database or end up on a phishing page. A TOTP code adds another sign-in step when someone has your password. A fake website can still relay a code to the real service, so manually entered codes do not provide phishing resistance. See NIST authentication guidance.
Six steps
- Find the setting
On the site, open your profile or settings and look for “Security”, “Sign-in and security” or “Two-factor authentication”. It is usually next to the password change.
- Choose an authenticator app
If the site offers SMS and an app, choose the app: codes don't depend on your SIM card and can't be intercepted by swapping it.
- Copy the secret key
The site shows a QR code. Click “Can't scan it?” or “Enter key manually” to reveal a string of letters and digits. That is the secret the codes are computed from.
- Add the secret to PasswordX
Open the record for this site and paste the secret or otpauth:// link into the 2FA code field. The code changes every 30 seconds; the “Copy TOTP code” button copies the current one and shows how many seconds it has left.
- Confirm on the site
Enter the current code from PasswordX into the site's form. If it's accepted, two-factor protection is on.
- Save the backup codes
The site gives you one-time backup codes in case you lose your authenticator. Save them in the same record's note or print them.
otpauth://totp/Example:anna?secret=JBSWY3DPEHPK3PXP&issuer=Example
Why not SMS
SMS is better than nothing, but it has three weak spots: your number can be reissued to someone else's SIM card, messages can be intercepted through flaws in mobile networks, and without signal the code doesn't arrive. An app computes the code on your device with the TOTP algorithm and never sends it over the network.
| Method | SIM swap | Works offline |
|---|---|---|
| SMS | Vulnerable | No |
| Authenticator app (TOTP) | Not affected | Yes |
| FIDO2/WebAuthn security key | Not affected | Yes |
Where to keep the secret
If the secret sits in a password manager next to the password, signing in gets fast: the password and the code sit in one record and copy in one click. The price of convenience is that both factors are protected by one vault. Decide whether that shared dependency fits the account. For accounts where losing both factors together would have serious consequences, consider a separate authenticator or a supported FIDO2/WebAuthn security key.
Complete the second-factor setup and keep an independent recovery route. Check both before retiring an old authenticator.
Which accounts first
- Your main email: it may receive password reset messages for other accounts.
- Banks and payment services.
- Government services and anything holding your documents.
- Cloud storage with your photos and files.
- Social networks and messengers someone could use to write to your friends.