Find a course

Module 3: Password ManagersLesson 5 of 1112 min

How Password Managers Work

Understand the encrypted vault, the master password, zero-knowledge design and autofill, and why a manager is safer than memory, notebooks or reuse.

Step 1 of 12Learn

One strong password instead of a hundred weak ones

The average person has dozens of online accounts, often more than a hundred when you count old shopping sites, apps and services. Nobody can memorize a hundred long, random, unique passwords. So people reuse, or use patterns, or write them in a notebook, or click "forgot password" every time.

A password manager solves this by remembering for you. It's an app (often with a browser extension and phone app) that stores your passwords in an encrypted vault. You open the vault with one strong master password (or a passkey, or your device's biometrics backed by a master secret), and the manager fills in the right password for each site.

What you gain:

  • Unique, random passwords everywhere, generated with a click: 20 characters or a long passphrase.
  • No more remembering anything except the master password.
  • Protection against fake sites, because the manager matches saved passwords to the real website address.
  • Sync across devices, so your phone and laptop have the same vault.
  • Alerts for reused, weak or breached passwords in many managers.

The obvious worry is "all your eggs in one basket." That worry is reasonable, and we'll look at it honestly. But for almost everyone, a well-protected basket beats a hundred weak ones scattered around.

Step 2 of 12Learn

Encryption and zero knowledge

How can it be safe to put every password in one place, especially one that syncs through the cloud?

Reputable managers use end-to-end encryption with a zero-knowledge design. Your vault is encrypted on your device with a key derived from your master password before anything is uploaded. The company's servers store only scrambled data. They don't know your master password and can't read your vault.

To turn your master password into an encryption key, the manager runs it through a deliberately slow key derivation function (such as PBKDF2 or Argon2) with many iterations. That makes each guess at your master password expensive if someone steals the encrypted vault.

This design has two big consequences:

  1. If the company is breached, attackers get encrypted vaults. Their only path is guessing master passwords offline. A long, random master passphrase makes that hopeless; a weak one does not. Password manager breaches have happened, and users with weak master passwords were the ones most at risk.
  2. If you forget your master password, the company usually can't recover your vault. That's the price of zero knowledge. You must set up the recovery options the manager offers, such as a recovery key or emergency contact, before you need them.

Step 3 of 12Practice · True or false

With a zero-knowledge password manager, the company can reset your master password and show you your saved passwords if you forget it.

Step 4 of 12Practice · Diagram

Zero knowledge: what leaves your device

At which step does an attacker who steals the company's servers get stuck?

Tap the shape that answers the question, then press Check.

Zero knowledge: what leaves your deviceProcess diagram: Master password → Slow key derivation → Encryption key, on device only → Vault encrypted locally → Only ciphertext synced.Master passwordSlow key derivationEncryption key, ondevice onlyVault encrypted locallyOnly ciphertextsynced
Master password

Typed only on your device.

Slow key derivation

PBKDF2 or Argon2 with many iterations: each guess is expensive.

Encryption key, on device only
Vault encrypted locally
Only ciphertext synced

The company stores scrambled data it cannot read.

Step 5 of 12Learn

Autofill: a quiet anti-phishing tool

One feature of password managers is more valuable than it first appears. When you visit a sign-in page, the manager checks the exact web address (the domain) and offers only the passwords saved for that domain.

Now imagine a phishing email sends you to examp1e-bank.com or example-bank.secure-login.net. The page looks perfect: the logo, the colors, the layout. Your eyes may be fooled. Your password manager isn't: it sees that the domain doesn't match example-bank.com, so it doesn't offer to fill anything.

That missing autofill is a warning sign. If you ever find yourself thinking "The manager isn't filling my password, I'll just copy it from the vault and paste it," stop. Check the address bar carefully. Legitimate exceptions exist (some companies use several domains for sign-in, and a few sites have quirky forms), but a missing autofill on a page you reached from an email or text message should make you suspicious.

Tip: the safest way to visit important accounts is from your own bookmark or by typing the address, not from links in messages.

Step 6 of 12Practice · What would you do?

What would you do?

You click a link in a text message about a delivery problem. It opens a page that looks exactly like a big online store's sign-in. Your password manager, which normally fills this store's password, shows nothing. What should you do?

Step 7 of 12Practice · Diagram

Autofill checks the address, not the look

Which address will the manager offer to fill?

Tap the shape that answers the question, then press Check.

Autofill checks the address, not the lookHierarchy diagram: Login saved for example-bank.com, example-bank.com, examp1e-bank.com, example-bank.secure-login.net.Login saved for example-bank.comexample-bank.comexamp1e-bank.comexample-bank.secure-login.net
Login saved for example-bank.com
example-bank.com

Exact match: the manager offers to fill.

examp1e-bank.com

A digit 1 instead of an l: no fill.

example-bank.secure-login.net

The real domain here is secure-login.net: no fill.

Step 8 of 12Compare

Where should passwords live?

AspectMemory and reusePaper notebook at homeBrowser's built-in managerDedicated password manager
Unique passwords for every sitePractically impossiblePossible but tediousYes, with generatorYes, with generator
Protection from remote attackersWeak, because of reuseGood: nothing online to stealGood if the device and account are securedGood with a strong master password
Phishing protectionNoneNoneDomain-matched autofillDomain-matched autofill
Works across devices and browsersYes, but weaklyNoUsually within one ecosystemYes, most platforms
Main riskOne leak opens many accountsLoss, fire, someone in your homeAnyone using your signed-in device or accountWeak master password or no recovery plan

Step 9 of 12Note

Step 10 of 12Practice · Select all that apply

Which statements about password managers are true? Select all that apply.

Select all that apply.

Step 11 of 12Note

Step 12 of 12Practice · Choose one

Why do password managers use a slow key derivation function on the master password?