Two-factor authentication means signing in with your password plus something only you hold, usually a code from an app on your phone. It stops most attacks that rely on a stolen or guessed password, which is how many account takeovers start. Set it up first on your email, then on your banking, hosting and business accounts. Use a free, open-source authenticator app rather than SMS codes where you can, and save your backup codes somewhere safe so a lost phone never locks you out. This article explains each step.
A password is something you know, and it can be stolen, guessed or leaked from another website. Two-factor authentication adds something you have, such as your phone or a security key. A criminal with your password still cannot sign in without it.
The evidence is strong. A 2023 Microsoft study of business accounts found that using multi-factor authentication reduced the risk of compromise by 99.22%, and that dedicated authenticator apps did better than SMS codes. Google's 2019 research found that even a simple SMS code to a recovery phone blocked all automated bot attacks on the accounts it studied, and that people who relied on security keys suffered no successful targeted phishing at all.
The UK National Cyber Security Centre (NCSC) and the US cybersecurity agency CISA agree on the starting point: any form of two-factor authentication is better than none.
Not every account needs it today. These do:
Not all second steps are equal. CISA ranks them, from strongest to weakest:
| Method | How it works | Weak points |
|---|---|---|
| Passkey or security key | Your device proves who you are, and only to the genuine website | Resists phishing. CISA calls this the gold standard |
| Authenticator app | An app shows a six-digit code that changes every 30 seconds | A fake website can still trick you into typing the code |
| Push approval with number matching | Your phone asks you to confirm a sign-in by typing the number shown on screen | Without number matching, criminals send prompts until someone taps "approve" |
| SMS or voice code | A code arrives by text or call | Can be intercepted, or redirected by a SIM swap. CISA says last resort only |
Where a service offers passkeys, use them; the NCSC now says they should generally be used where available. For everything else, an authenticator app is the practical choice.
SMS codes depend on your phone number, and a phone number can be taken from you. In a SIM swap, a criminal persuades your mobile network to move your number to a SIM card they control. From then on, your text messages, including login and banking codes, go to them. It happens worldwide. In South Africa, the banking industry's risk centre SABRIC warns that criminals swap or port numbers to receive bank one-time PINs.
SABRIC's warning signs are worth knowing:
An authenticator app removes your phone number from the picture. SMS codes are still far better than no second step, so use them where nothing else is offered.
Most authenticator apps use the same open standard, TOTP, so any of them works with any service that shows a QR code. We recommend free, open-source apps that keep your codes under your control:
| App | Runs on | Licence | Backups |
|---|---|---|---|
| Aegis Authenticator | Android | GPL 3.0 | Encrypted vault, with automatic encrypted backups to a folder you choose; its own FAQ names Nextcloud as a working backup destination |
| Ente Auth | Android, iPhone, Linux, macOS, Windows | AGPL 3.0 | Works offline without an account, or with optional end-to-end encrypted sync between devices |
| 2FAS Auth | iPhone, Android | GPL 3.0 | No account needed; optional backup to your phone's cloud, encrypted with your own password |
| KeePassXC | Linux, macOS, Windows | GPL | Codes stored in your encrypted password database |
A word on password managers. KeePassXC and Bitwarden can both store your two-factor codes. KeePassXC's own guide warns that keeping the codes in the same database as the passwords removes the benefit of two-factor authentication, because one stolen database then holds both factors. If you use a password manager for codes, keep them in a separate database or app.
The steps are almost the same on every service:
Treat the QR code like a password: it contains the secret your app uses to make codes, and anyone who has it can make the same codes. Do not email it, paste it into a ticket or leave a screenshot of it on your phone.
When you turn on two-factor authentication, most services give you a set of backup codes. Each works once, and they let you in if your phone is lost, broken or stolen.
This matters more than people expect. GitHub, for example, says plainly that its support team cannot restore access to an account if you lose both your two-factor device and your recovery codes. Many services work the same way.
Two-factor authentication protects the moment you sign in. It does not protect a session that has already been stolen from your browser by malware, and codes from apps and SMS can still be phished by a convincing fake login page. Our article on infostealer malware explains both, and why passkeys are the next step.
Turn it on for your email today, and for your hosting control panel straight after. If you get stuck, get in touch.
Checked 19 October 2026.
Research and statistics
Government guidance and standards
Apps and services
Noiz
Note: while some of this content was produced with the help of AI, the final editing has been done by a real human being.