Find a course

Module 2: Protecting Your Accounts and DevicesLesson 3 of 1012 min

Passwords, Passphrases and 2FA

Learn why length beats complexity, why reusing a password is risky, how password managers help, and why two-factor authentication stops most takeovers.

Step 1 of 12Learn

How Ethan lost his gaming account

Ethan used the same password for everything: his gaming account, his email and a small forum about sneakers he joined in middle school. One day the sneaker forum was hacked, and its list of emails and passwords was posted online. Within hours, automated programs tried that same email and password on hundreds of popular sites. They got into his gaming account, changed the email, and sold his rare skins.

This attack is called credential stuffing, and it's one of the most common ways accounts are stolen. Hackers rarely "guess" your password like in movies. They take passwords leaked from one site and try them everywhere else.

That's why the most important password rule is: every account gets its own password. If one site leaks, only that one account is at risk.

Other ways passwords get stolen:

  • Phishing: a fake login page tricks you into typing it in.
  • Guessing: common passwords like "123456", "password", or your pet's name plus your birth year are tried first.
  • Shoulder surfing: someone watches you type, or a friend you shared it with tells someone else.
  • Malware on your device that records what you type.

Step 2 of 12Practice · Choose one

A website you used years ago announces a data breach that exposed passwords. You used that same password for your email. What should you do first?

Step 3 of 12Learn

Length beats complexity

For years, people were told to make passwords like Tr0ub4dor&3: short, with symbols swapped in. They're hard to remember and, it turns out, not that hard for computers to crack, because attackers know the common tricks, like swapping "o" for "0".

What makes a password strong is mostly length and randomness. Every extra character multiplies the number of possibilities an attacker has to try. Compare:

  • 8 lowercase letters: 268 ≈ 200 billion combinations. A fast cracking setup can try them all in seconds.
  • 4 random common words, like velvet-canyon-pickle-orbit: far more combinations, and you can actually remember it.

That's a passphrase: several random words strung together. Current US government guidelines recommend passwords of at least 15 characters when a password is the only thing protecting an account. Passphrases make that easy.

The words must be random, not a quote, song lyric or something about you. "iloveyoumom" or "letsgoyankees2010" appear in cracking word lists. Pick words by opening a dictionary at random, or let a password manager generate them.

Step 4 of 12Explore

Why every extra character matters

The curve shows how many possible passwords there are, written as a power of ten (6 means 1,000,000), as length grows. Change the character set: 10 for digits only, 26 for lowercase, 62 for letters and digits, 95 for all keyboard symbols. Then compare lengths with the readouts.

010203040 5101520
Possible passwords at this length: 10 to the power
11.3
One more character multiplies the possibilities by
26
Same length, lowercase only: 10 to the power
11.3

Step 5 of 12Try the calculator

Password cracking time

Estimate how long an attacker would need, on average, to guess a password by trying every combination. "Characters to choose from" is 26 for lowercase letters only, 62 for upper- and lowercase plus digits, and about 95 if you use all keyboard symbols. Fast offline attacks on poorly protected password lists can try billions of guesses per second.

Number of digits in the count of combinations
12
Average time to crack
10 seconds
Average time to crack
0 years

Step 6 of 12Practice · Work it out

A phone uses a 6-digit PIN, and each digit can be 0 to 9. How many different PINs are possible?

Step 7 of 12Learn

Password managers and two-factor authentication

If every account needs its own long password, how do you remember 50 of them? You don't. A password manager does. It's an app that creates strong random passwords, stores them in an encrypted vault, and fills them in for you. You only need to remember one strong master passphrase. Phones and browsers have built-in managers, and there are dedicated apps too. A password manager also helps against phishing: it won't fill in your password on a fake site, because the address doesn't match.

The second big upgrade is two-factor authentication (2FA), sometimes called multi-factor authentication. After your password, the site asks for a second proof:

  • A code from an authenticator app that changes every 30 seconds (strong).
  • A passkey or security key, using your fingerprint, face or a small device (strongest, and resistant to phishing).
  • A code sent by text message (weaker, because phone numbers can be hijacked, but still far better than nothing).

With 2FA on, a stolen password alone isn't enough. Turn it on first for your email, because whoever controls your email can reset almost every other account. Then do social media, gaming and anything with payment info.

Step 8 of 12Compare

Second factors compared

AspectText message codeAuthenticator appPasskey or security key
StrengthWeaker, still far better than noneStrongStrongest
Stops fake login pages?No, you can be tricked into typing itNo, you can be tricked into typing itYes, it only works on the real site
Main weaknessPhone number can be hijackedLost phone without backup codesLost key without a backup method
Turn it on forAnything with no better optionEmail, social, gamingEmail and accounts that offer it

Step 9 of 12Practice · Sort into groups

Sort these into strong or weak account security habits.

Tap an item, then tap its group (or drag it there).

Step 10 of 12Note

Step 11 of 12Practice · True or false

A short password full of symbols, like P@$5!, is stronger than a long passphrase of four random words.

Step 12 of 12Practice · What would you do?

What would you do?

A friend messages you on a gaming app: "Hey, I accidentally sent my login code to your phone number. Can you send it to me?" A few seconds later, you get a text with a code. What should you do?