Glossary Encryption you use every day
Two-factor codes
Two-factor authentication asks for something you have, such as your phone, as well as your password. Authenticator apps make a new six-digit code every 30 seconds from a secret shared with the website when you set it up.
A front door that needs both a key and a code that changes every 30 seconds.
- Password only One stolen or reused password is enough to get in. Weakness: Breaches, reuse, phishing Add a second factor wherever you can.
- Text message codes A code sent to your phone number. Weakness: SIM swapping, phishing Better than nothing.
- Authenticator app A code that changes every 30 seconds, made on your phone. Weakness: Can still be phished in real time Safe from SIM swapping.
- Passkey or security key Your device signs in only to the real website. Weakness: Losing every device without a backup The strongest option for most people.
Why it matters
It stops most account takeovers that use stolen passwords. Codes sent by text message are weaker, because criminals can sometimes hijack your phone number.
Where you meet it
Google Authenticator, Microsoft Authenticator, the code fields in banking and email logins.
- You click Pay
- 1Data sent to your bank The shop passes details of the purchase and your device to your card issuer. Detail: EMV 3-D Secure 2 Far more data than the old password pop-ups used.
- 2Risk check Your bank scores the payment for fraud risk. Detail: Device, location, amount, history Low-risk payments go through with no interruption.
- 3Challenge if needed For riskier payments you approve in your banking app or enter a one-time code. Detail: Strong customer authentication in the UK and EU Exemptions apply to some low-value and low-risk payments.
- 4Result returned Your bank sends back a signed result that the shop includes with the payment. Detail: Authentication value Fraud liability usually shifts from the shop to the card issuer.
- Payment authorised
Go deeper history and technical detail
Authenticator apps follow the TOTP standard (RFC 6238, 2011), which feeds the shared secret and the current time into HMAC. Codes can still be phished by a fake site that passes them on in real time. Passkeys and hardware security keys defeat that because they check the website's real address.
Read or watch next
- Turn on 2-Step VerificationGoogle Account Help, guide
- What is two-factor authentication for Apple Account? | Apple SupportApple UK (2026), how-to video
- How to: Enable Two-factor AuthenticationEFF Surveillance Self-Defense, guide
- Get verification codes with Google AuthenticatorGoogle Account Help, guide
- Top tips for staying secure onlineUK NCSC, guide
Related terms
Cite this page Encryption Observer, “Two-factor codes”, encryption.observer/terms/two-factor/, checked December 2026.