What two-factor authentication is and how it works
Two-step verification prevents access to an account even when the password has been compromised, because it adds an extra check at login [1][2][3][4]. This mechanism requires two distinct proofs of identity: the first is almost always the password, the second can be a temporary code, a device notification, or a biometric trait [5][6][7][8].
In practice, after entering username and password, the system asks for a second control element before granting access [9]. This additional element can come in the form of a code sent via SMS to the registered smartphone, a notification on an authentication app, or a message to the associated email address [10][11]. The account thus receives an extra level of protection that the password alone cannot guarantee [12].
Authentication methods are grouped into three main categories: what you know, what you have, and unique physical traits [13]. To be effective, two-factor authentication must draw on at least two of these three categories [14].
- Knowledge: something the user knows, such as a password or a PIN [15][16].
- Possession: something the user physically has, such as a hardware token, a smartphone with an authentication app, or a one-time code received via SMS [15][16][17].
- Inherence: something the user is, such as a fingerprint, facial recognition, or other biometric characteristics [15][16].
Some models expand this classification to five categories, adding geographic location and time factor as additional verification elements [18]. Two-factor authentication represents the most common method of multi-factor authentication, which involves the use of more than one control element [15], and constitutes a subset of multifactor authentication, which may also include contextual elements such as user behavior [19][20].
A crucial aspect concerns the choice of factors: using two elements belonging to the same typology, for example two secret codes, raises the probability that both will be breached together [13]. For this reason, the combination always unites knowledge (the password) with possession (the code generated by an app or sent via SMS) [17], creating a barrier that an attacker can hardly overcome with the sole theft of credentials.
Why enable it: security and statistics
A password alone is no longer enough to keep an account safe. Two-factor authentication stops 99.9% of automated intrusion attempts [21][9][17]. Even when an attacker manages to obtain the password, they still cannot access the account without the second factor [5][6][22].
The mechanism is simple: the second factor introduces a barrier that large-scale attacks cannot overcome. This is why two-factor authentication is considered one of the most effective protections for a Google account [23].
An attacker who has bought a password database on the dark web still faces a wall, because they lack the physical device or biometric data of the legitimate user [5][6][22].
Activation takes less than two minutes and blocks most automated attacks [24].
To further raise the level of protection, it is recommended to combine two-factor authentication with strong and unique passwords [20]. The two layers together cover different attack scenarios and drastically reduce the exposed surface.
The adoption of two-step verification is now an established reality in most online services, from social media to content management platforms like WordPress [25].
The different verification methods
The most common system requires entering a six-digit code [26]. One-time codes sent via SMS or email are typically six digits long and expire automatically after a single use [27]. Authentication apps like Google Authenticator generate six-digit verification codes [28].
The duration of time-based one-time numerical codes is usually between 30 and 60 seconds [29]. The TOTP method generates a new code every 30 seconds, without depending on the mobile network [22]. Security codes for two-step verification are regenerated every few seconds [30]. With an app such as Google Authenticator, in addition to username and password you enter a 6-digit numerical code valid for about 30 seconds [32][6].
Apps like Google Authenticator and Authy generate temporary codes without the need for an internet connection [3][7][31]. Temporary codes can arrive via SMS or be created through special dedicated applications [21]. Authenticator apps like Google Authenticator, Microsoft Authenticator and Authy produce temporary codes that expire after just a few seconds [17]. To produce the code, applications such as Google Authenticator or TOTP Authenticator are used, which can be downloaded without costs [32].
To receive the second code, you can choose a phone number via SMS or call [33]. SMS is the simplest method to activate 2FA, but it has vulnerabilities such as number reassignment or message interception [34]. All forms of two-step verification increase security, but codes via SMS or call can be intercepted by attacks based on the phone number [2][35][27][17]. One-time codes via SMS or email are less secure because they are subject to interception or SIM swap attacks [13].
Physical security devices are the most effective option for two-step verification [36]. FIDO U2F hardware keys are a rapidly growing technology and comply with PSD2 and NIST requirements [37]. Physical keys like YubiKey and Google Titan comply with the FIDO2/U2F standard and are considered the highest level of security [24]. Hardware devices such as those from Yubico generate access codes and are considered among the most reliable 2FA methods, often used in high-security corporate environments [17].
The TOTP algorithm generates temporary codes based on a shared seed between server and device, making them difficult to guess [13]. Available verification methods include passkeys, physical security keys, apps such as Google Authenticator, codes via SMS or call, QR codes, and backup codes [38].
Activation guide for major services
On iPhone, the activation procedure is carried out by entering Settings, selecting your name and continuing in the section dedicated to login and security [39][26]. For the Apple account, activation via web browser is done by going to the official accounts portal [26]. In general, the procedure involves accessing the settings, then the security section and finally the item dedicated to two-step verification [40][33][41][42], or entering the ‘Password & security’ section of your account, choosing the desired method and entering the code received via email, SMS or authenticator app [43]. A typical path is Settings → Security → Two-factor authentication [9], and the activation of 2FA is generally found in the security or privacy settings of each service [44].
For the Google account, the procedure involves accessing the security settings, activating two-step verification, and choosing between SMS or an app like Google Authenticator or Authy [45]. The activation of 2FA for Google occurs through the account’s security settings, accessible from the dedicated section [23], and Google’s two-step verification service is free for all users [23].
To activate 2FA, it is recommended to use an authentication app such as Google Authenticator or Authy, or receive codes via SMS, and to save backup codes in case the device is lost [5][46]. In the case of 2FA via SMS, you must enter the code received on your phone to complete activation [46]. To enable 2FA, you go to the account security settings, select a method among authenticator app, SMS or hardware key and confirm with a verification code [8]. With the authenticator app, you scan the QR code and enter the 6-digit code generated by the app [46]. The available verification methods include code via email, SMS or authentication app, with the possibility of choosing your preferred one [47]. Activation takes place by scanning a QR code with an authentication app such as Google Authenticator, or by manually entering the key [48].
You can quickly access two-step verification settings directly from the Windows Settings menu [49].
On Facebook, the path to enable it is: Settings and privacy > Settings > Account Center > Password and security > Two-step verification [50], or Settings → Security and login → Two-factor authentication → Use two-factor authentication → Edit [20]. On Instagram, the path is Settings → Security → Two-factor authentication → Get started [20]. Through Meta’s Account Center, you can set up 2FA for Instagram and Facebook at the same time [44].
Special cases: Apple, Google and other ecosystems
Two-step verification is the default protection for most Apple accounts [51][52]. Initial login requires the Apple Account password along with a six-digit numerical verification code [39]. If the Apple account was created with two-step verification already enabled, the protection can no longer be deactivated [39].
Those who have recently activated it on an existing Apple account can reduce the account’s security level within two weeks of registration [39][26]. Features such as Apple Pay and Sign in with Apple require the use of two-step verification [26][53][51].
If Google suspects a phone number added for two-step verification, Google blocks the number and alerts the user, who has 30 days to confirm they added it; otherwise the number is removed from the account [2][4][35].
For the Microsoft account, if you forget the password with two-step verification active, two contact methods are needed for recovery, and the process can take up to 30 days [10]. Still on the Microsoft account, every login from an untrusted device requires entering a security code sent via email, SMS, or app [10]. On Apple, at the first login on a new device or via the web, it is necessary to enter a verification code [51]. To complete the login with 2FA, in addition to traditional credentials, a temporary code provided by an app or via email is required [14].
Activating two-step verification on Google automatically protects the associated YouTube account as well [8]. Sending gifts in Fortnite requires two-factor authentication [47]. Downloading some free games from the Epic Games store requires activating two-step verification [54].
| Service | Detail |
|---|---|
| Apple | Security reduction possible within two weeks of registration [39][51] |
| Suspicious number lock with 30 days for confirmation [2][4][35] | |
| X | 2FA via SMS requires a paid subscription [8] |
| Epic Games | 2FA mandatory to send gifts in Fortnite [47] and to download some free games [54] |
The advice is to enable 2FA on all major services such as Google, WhatsApp, Instagram, Facebook and TikTok [41].
Risks, limitations and best practices
Attackers have refined specific techniques to bypass two-factor authentication: interception of codes sent via SMS or email, man-in-the-middle attacks, SIM swapping, and social engineering [16].
The first line of defense starts with the email inbox. To protect codes received via email, it is advisable to use a strong password and also enable two-step verification on the email account [27]. A single weak link in the chain makes the additional protection on the main account useless.
The verification code should never be shared with anyone, even when the request appears legitimate, unless we were the ones who first contacted the service [27].
The choice of the second factor affects resistance to these attacks. Checking which options each service offers and favoring those that do not depend on the phone number reduces the attack surface.
In summary
Protecting access to digital services requires an additional layer of verification beyond the password alone, capable of stopping most automated attacks even when credentials are stolen. The most common methods combine something the user knows with an element they physically possess or with a biometric characteristic, drastically reducing the risk of intrusion. Activating two-factor authentication on primary accounts represents the single intervention with the best ratio between ease of adoption and increase in personal security, and it takes only a few minutes for each profile. The availability of recovery codes must be managed with the same care as house keys, keeping an offline copy in a safe place to avoid permanent lockout in case the main device is lost.
How we worked on this article
- Pages consulted: 100, of which relevant: 89.
- Languages of cited sources: 17 (Czech, German, Greek, English, Spanish, Finnish, French, Hungarian, Italian, Japanese, Dutch, Polish, Portuguese, Romanian, Russian, Swedish, Chinese).
- Sources cited in the text: 54.
- Groups of facts used: 100.
- Statements discarded due to lack of independent coverage: 163.
- Last checked: 2026-10-04.
Sources and references
- [1] Two-factor authentication (2FA) and how to enable it (en): https://www.epicgames.com/help/account-c-45487929/account-security-c-38978022/two-factor-authentication-2fa-and-how-to-enable-it-a10075388
- [2] A kétlépcsős azonosítás bekapcsolása – Számítógép – Google-fiók Súgó (hu): https://support.google.com/accounts/answer/185839?hl=hu&co=GENIE.Platform%3DDesktop
- [3] 2‑Faktor-Authentifizierung aktivieren – Computer – Google … (de): https://support.google.com/accounts/answer/185839?hl=de&co=GENIE.Platform%3DDesktop
- [4] Zapnutí dvoufázového ověření – Počítač – Nápověda Gmail (cs): https://support.google.com/mail/answer/185839?hl=cs&co=GENIE.Platform%3DDesktop
- [5] Comment activer l’authentification à deux facteurs ? (fr): https://astucial.fr/cybersecurite-donnees/activer-authentification-deux-facteurs-14665
- [6] Autenticación en dos factores (2FA): guía integral de… | Gate Wiki (es): https://www.gate.com/es/crypto-wiki/article/two-factor-authentication-2fa-a-comprehensive-security-guide-20260104
- [7] Autenticação de dois fatores: para o que serve e como ativar (pt): https://blog.agibank.com.br/autenticacao-de-dois-fatores/
- [8] How to enable two-factor authentication on any account – Setapp (en): https://setapp.com/how-to/enable-two-factor-authentication
- [9] Authentification à deux facteurs : pourquoi et comment l … (fr): https://drive-to-digital.com/authentification-deux-facteurs-guide/
- [10] How to use two-step verification with your Microsoft account (en): https://support.microsoft.com/en-us/accounts-billing/security/how-to-use-two-step-verification-with-your-microsoft-account
- [11] Google アカウントのセキュリティを強化!|Google… (ja): https://serai.jp/living/1175234
- [12] Kaksivaiheisen tunnistautumisen käyttöönotto My F-Secure … (fi): https://help.f-secure.com/product.html?home/total-windows/latest/fi/task_EA1B1F672EE944E7AD98DCB370B3A950-latest-fi
- [13] Che cos’è l’autenticazione a due fattori (2FA)? (it): https://www.checkpoint.com/it/cyber-hub/network-security/what-is-two-factor-authentication-2fa/
- [14] Întrebări simple: Ce este autentificarea cu doi factori… | Digital Citizen (ro): https://www.digitalcitizen.ro/intrebari-simple-este-verificarea-ori-autentificarea-doi-pasi/
- [15] Che cos’è la 2FA (Autenticazione a due fattori)? (it): https://www.ibm.com/it-it/think/topics/2fa
- [16] Che cos’è l’autenticazione a due fattori (2FA)? (it): https://www.akamai.com/it/glossary/what-is-two-factor-authentication
- [17] Como ativar a verificação de duas etapas (2FA) e deixar suas contas… (pt): https://www.nordinvestimentos.com.br/blog/autenticacao-dois-fatores-2fa/
- [18] Che cos’è l’autenticazione 2fa? (it): https://www.fortinet.com/it/resources/cyberglossary/two-factor-authentication
- [19] What is Two-Factor Authentication (2FA), and How can it … (en): https://www.fortinet.com/resources/cyberglossary/two-factor-authentication
- [20] Uwierzytelnianie dwuskładnikowe: czym jest i dlaczego warto włączyć (pl): https://itxon.pl/blog/uwierzytelnianie-dwuskladnikowe-czym-jest-i-dlaczego-warto-je-wlaczyc/
- [21] Authentification multifactorielle : Comment l’activer pour renfor .. (fr): https://www.zdnet.fr/pratique/authentification-multifactorielle-comment-l-activer-pour-renforcer-votre-securite-39939385.htm
- [22] Zwei-Faktor-Authentifizierung: Mehr Sicherheit leicht gemacht (de): https://surfshark.com/de/blog/zwei-faktor-authentifizierung
- [23] Dvoufázové ověření Google – jak jej zapnout a nastavit | Čisté PC (cs): https://www.cistepc.cz/dvoufazove-overeni-google-jak-jej-zapnout-a-nastavit/
- [24] Autentificare cu doi factori: Un ghid pentru protejarea conturilor… (ro): https://litsuit.com/ro/autentificare-cu-doi-factori/
- [25] Kaksivaiheinen tunnistautuminen parantaa tietoturvaa (fi): https://www.zoner.fi/tietoturva/kaksivaiheinen-tunnistautuminen/
- [26] Two-factor authentication for Apple Account (en): https://support.apple.com/en-us/102660
- [27] Use Two-Factor Authentication To Protect Your Accounts (en): https://consumer.ftc.gov/articles/use-two-factor-authentication-protect-your-accounts
- [28] How to Enable Two‑Factor Authentication on Your Devices: A … (en): https://www.gadgets01.com/2025/09/how-to-enable-twofactor-authentication.html
- [29] Che cos’è l’autenticazione a due fattori (2FA)? (it): https://www.microsoft.com/it-it/security/business/security-101/what-is-two-factor-authentication-2fa
- [30] Che cos’è la Doppia Autenticazione e perché è importante? (it): https://jtpinformatica.it/blog/doppia-autenticazione/
- [31] cosa si intende per autenticazione a due fattori? – Tot (it): https://tot.money/blog/cosa-si-intende-per-autenticazione-a-due-fattori
- [32] Account Google: attivare la verifica in due passaggi (it): https://www.uet.unisi.it/account-google-attivare-la-verifica-in-due-passaggi/
- [33] Как включить двухфакторную аутентификацию – инструкция для … (ru): https://blog.mail.ru/tutorial/dvuhfaktornaya-autentifikaciya/
- [34] Как настроить двухфакторную аутентификацию: инструкция для … (ru): https://kontur.ru/aegis/blog/85431-nastroit_dvuhfaktornuyu_autentifikaciyu
- [35] A kétlépcsős azonosítás bekapcsolása (hu): https://support.google.com/accounts/answer/185839?hl=hu-IN&co=GENIE.Platform%3DDesktop
- [36] Autenticazione a due fattori: come impostarla sui tuoi … (it): https://www.dehn.it/it/conoscere/blog/autenticazione-a-due-fattori
- [37] Autenticazione a due fattori: come attivare 2FA e … (it): https://www.cybersecurity360.it/soluzioni-aziendali/autenticazione-a-due-fattori-cose-come-e-perche-usarla-per-google-facebook-instagram-e-altri/
- [38] Cómo activar la Verificación en 2 pasos (es): https://support.google.com/accounts/answer/185839?hl=es-419
- [39] Autenticazione a due fattori per Apple Account (it): https://support.apple.com/it-it/102660
- [40] Uwierzytelnianie dwuskładnikowe – czym jest i jak mogę je włączyć? (pl): https://securitify.pl/uwierzytelnianie-dwuskladnikowe/
- [41] Como configurar autenticação de dois fatores (2FA) no celular … (pt): https://techreviewr.com/%F0%9F%94%90-como-configurar-autenticacao-de-dois-fatores-2fa-no-celular-e-nos-aplicativos-guia-completo-para-iniciantes/
- [42] ww2.mathworks.cn/matlabcentral/answers/1997673-2 (ja): https://ww2.mathworks.cn/matlabcentral/answers/1997673-2
- [43] Tvåfaktorsautentisering (2FA) och hur man aktiverar det (sv): https://www.epicgames.com/help/c-202300000001645/c-202300000001755/tvafaktorsautentisering-2fa-och-hur-man-aktiverar-det-a202300000016452?lang=sv
- [44] Como ativar a autenticação de 2 fatores: Guia de Segurança … (pt): https://casado.dev/tecnologia/como-configurar-autenticacao-2-fatores-celular-passo-passo
- [45] rooms-m.com/two-factor_authentication (ja): https://rooms-m.com/two-factor_authentication/
- [46] Πώς να ενεργοποιήσετε τον έλεγχο ταυτότητας δύο παραγόντων … (el): https://www.ssl.com/el/%CE%BA%CE%B1%CE%B8%CE%BF%CE%B4%CE%B7%CE%B3%CE%AE%CF%83%CE%B5%CE%B9/%CF%80%CF%8E%CF%82-%CE%BD%CE%B1-%CE%B5%CE%BD%CE%B5%CF%81%CE%B3%CE%BF%CF%80%CE%BF%CE%B9%CE%AE%CF%83%CE%B5%CF%84%CE%B5-%CF%84%CE%BF%CE%BD-%CE%AD%CE%BB%CE%B5%CE%B3%CF%87%CE%BF-%CF%84%CE%B1%CF%85%CF%84%CF%8C%CF%84%CE%B7%CF%84%CE%B1%CF%82-%CE%B4%CF%8D%CE%BF-%CF%80%CE%B1%CF%81%CE%B1%CE%B3%CF%8C%CE%BD%CF%84%CF%89%CE%BD-2fa-%CE%B3%CE%B9%CE%B1-%CF%84%CE%BF%CE%BD-%CE%BB%CE%BF%CE%B3%CE%B1%CF%81%CE%B9%CE%B1%CF%83%CE%BC%CF%8C-%CF%83%CE%B1%CF%82-ssl-com/
- [47] Zwei-Faktor-Authentifizierung (2FA) und wie du sie aktivierst (de): https://www.epicgames.com/help/fortnite-c75/c93/2-2fa-a3218?lang=de
- [48] Tweefactorauthenticatie (2FA) (nl): https://knowledge.aanmelder.nl/nl/knowledge/tweefactorauthenticatie
- [49] 如何在Windows中开启双重身份验证 系统登录安全加固教程-PHP中文网 (zh): https://www.php.cn/faq/2308873.html
- [50] How to Turn on Two-Factor Authentication – Tech.co (en): https://tech.co/cybersecurity/how-to-turn-on-two-factor-authentication
- [51] Autentificarea cu doi factori pentru contul Apple – Apple Support (RO) (ro): https://support.apple.com/ro-ro/102660
- [52] Zwei-Faktor-Authentifizierung für Apple Account – Apple Support (DE) (de): https://support.apple.com/de-de/102660
- [53] Autenticación de dos factores para la cuenta de Apple – Soporte… (es): https://support.apple.com/es-lamr/102660
- [54] Двухфакторная аутентификация и как её включить (ru): https://www.epicgames.com/help/fortnite-c75/uchyotnye-zapisi-epic-c114/dvuhfaktornaya-autentifikaciya-i-kak-eyo-vklyuchit-a3218?lang=ru
Further reading
- Two-factor authentication (2FA) and how to enable it
- A kétlépcsős azonosítás bekapcsolása – Számítógép – Google-fiók Súgó
- 2‑Faktor-Authentifizierung aktivieren – Computer – Google …
- Zapnutí dvoufázového ověření – Počítač – Nápověda Gmail
- A kétlépcsős azonosítás bekapcsolása
- Zwei-Faktor-Authentifizierung (2FA) und wie du sie aktivierst