Cyber basics · Lesson 2 of 14
Passwords, passkeys & MFA
Learn how accounts really get hacked, why password reuse is dangerous, and how password managers, passkeys and multi-factor authentication protect you.
⏱ 15 min🎯 Beginner🧪 Hands-on practice🎬 Video
By the end, you’ll be able to…
- Explain how websites store passwords (hashing) and why leaks still happen
- Describe credential stuffing and why reusing passwords is risky
- Choose between SMS codes, authenticator apps, security keys and passkeys
Key words
- Authentication
- Proving you are who you say you are.
- Credential stuffing
- Trying usernames and passwords leaked from one site on many other sites.
- Password manager
- An app that creates and remembers a unique strong password for every account.
- MFA
- Multi-factor authentication: needing two or more kinds of proof, like a password plus a code.
- Passkey
- A login that uses a key stored on your device instead of a typed password. It only works on the real website.
- Hash
- A one-way fingerprint of data. Websites should store hashes, not your actual password.
How accounts actually get taken over
Movies show hackers “guessing” passwords in seconds. In real life, the most common ways accounts are taken over are boring:
- Reused passwords. One site gets breached, the password list leaks, and attackers try those same email and password pairs everywhere else. This is called credential stuffing.
- Phishing. A fake login page tricks you into typing your password. (Next lesson!)
- Weak or common passwords like
123456orpassword1, which appear in every leaked list.
Notice that none of these needs a genius. That’s good news: simple habits block most of them.
How websites store your password
A well-built website never stores your actual password. It stores a hash: a one-way fingerprint. When you log in, it hashes what you typed and compares fingerprints. Good systems use slow, salted hashing methods such as bcrypt, scrypt or Argon2, so that even a stolen list of hashes is painful to crack.
But not every site does this well, and you can’t see how a site stores your password. So assume any password could leak one day, and make sure a leak only hurts one account.
The three habits that matter most
1. A unique password for every account
You cannot remember 100 unique strong passwords. Nobody can. That’s what a password manager is for. It generates long random passwords and fills them in for you. You only remember one strong master passphrase. Open-source options include Bitwarden and KeePassXC.
For the passwords you must remember (like the master one), use a passphrase: several random words, such as orbit-pickle-lantern-violin. Length beats complexity. NIST’s current guidance (SP 800-63B) favours long passwords, checks against known-breached lists, and drops forced regular changes and “must include a symbol” rules.
2. Turn on multi-factor authentication (MFA)
MFA means a stolen password alone isn’t enough. From weakest to strongest:
| Method | How it works | Weak spot |
|---|---|---|
| SMS code | A code texted to your phone | SIM-swap scams; can be phished |
| Authenticator app | A 6-digit code that changes every 30 seconds | Can still be typed into a fake site |
| Push approval | Tap “Approve” on your phone | “MFA fatigue”: spamming prompts until you tap yes |
| Security key / passkey | Your device proves who you are to the real site | Very hard to phish; keep a backup method |
Any MFA is far better than none. If a site offers passkeys, they’re usually the best option.
3. Learn what passkeys are
A passkey replaces your password with a cryptographic key pair. The private half stays on your phone, laptop or security key. When you log in, your device signs a challenge from the website, after you unlock it with your fingerprint, face or PIN. Because the passkey is tied to the real website’s address, a fake look-alike site simply can’t use it. That’s why passkeys are called phishing-resistant.
Check if you’ve been in a breach
Have I Been Pwned is a well-known free service that tells you if your email address appeared in a known data breach. If it did, change that password everywhere you used it, and turn on MFA.
The practice tool below runs only in your browser and sends nothing anywhere. Still, build the habit: test example passwords, never your real ones.
🧪 Hands-on
Practice
Type example passwords (not your real ones!) and see what Tux thinks. Everything stays in your browser.
🎬 Watch
Video: How NOT to Store Passwords!
Video by Computerphile, hosted on YouTube. It loads only when you press play.
✅ Check yourself
Quick quiz
🔗 Go further
Trustworthy resources
- Have I Been Pwned Check if your email appeared in a known breach.
- passkeys.dev Plain explanation of how passkeys work.
- NIST SP 800-63B The official US guidance on passwords and authentication.
- Bitwarden Open-source password manager.
- KeePassXC Open-source offline password manager.