🧭 Guides

How a password manager keeps your passwords safe, even if the company is breached

A plain language look inside a password manager: how encryption and your master password lock the vault, why the company cannot read it, and what really happens when a password manager is breached.

Guides: How a password manager keeps your passwords safe, even if the company is breached

In short

A good password manager keeps your passwords in an encrypted vault. The vault is locked and unlocked on your own device using a key made from your master password. The company stores only the scrambled vault and never learns your master password, so it cannot read your passwords, and neither can anyone who steals its servers' data.

That is why a breach at a password manager is serious but not automatically a disaster. Attackers who take encrypted vaults still have to guess each master password. With a long, unique master password, that guessing is hopeless. With a short or reused one, it may not be.

So the safety of a password manager comes down to two things: sound encryption by the company and a strong master password from you.

The vault: what encryption does

Encryption turns readable information into scrambled data that can only be turned back with the right key. Think of a safe whose combination only you know.

Password managers use well tested, standard encryption. Bitwarden's security whitepaper describes AES 256 bit encryption of vault data, and 1Password says it uses AES-GCM-256. These are the same families of encryption used by banks and governments. Nobody breaks them by brute force; attackers go after the key instead.

Here is what happens when you save a password:

  1. You type a new password into your manager on your phone or computer.
  2. The app encrypts it on your device using your vault key.
  3. Only the encrypted version is sent to the company's servers to sync to your other devices.
  4. When you need it, your device downloads the encrypted vault and decrypts it locally.

The readable password exists only on devices you have unlocked.

The master password: turning a phrase into a key

Your master password is not stored anywhere as a password. Instead, the app runs it through a key derivation function, a deliberately slow mathematical process, to produce the encryption key. Bitwarden documents two such functions, PBKDF2 and Argon2id, and 1Password uses PBKDF2.

The slowness is the point. Making each guess take extra computing work barely affects you, because you unlock your vault once. But it multiplies the cost for an attacker who needs billions of guesses.

To prove you are you when signing in, apps send a value derived from your password, not the password itself:

  • Bitwarden says it never stores and cannot access your master password or your keys.
  • 1Password says your account password is never sent over the network, and it uses a sign in method called Secure Remote Password so the password does not travel online.

Zero knowledge, and why it matters

Companies call this design zero knowledge or end to end encryption: the provider holds your data but not the means to read it. The big platform managers work the same way:

  • Apple Passwords and Keychain: Apple says these are end to end encrypted by default, with keys kept on your trusted devices, and that Apple does not have the keys.
  • Google Password Manager: passwords are encrypted, and Google holds the key by default so it can decrypt them for you when needed. Google offers optional on-device encryption, which moves the key to you, unlocked by your Google password or your phone's screen lock. Google notes that once set up it cannot be removed, and that losing all your recovery options means losing your saved passwords.

The trade off is the same everywhere: the more only you hold the key, the more important your recovery plan becomes.

1Password's extra ingredient: the Secret Key

1Password adds a second secret. When you create an account, it generates a 128 bit Secret Key that stays on your devices and in your emergency kit. Your account password and Secret Key are combined to create the encryption keys.

The benefit: even if someone stole 1Password's servers' data, a weak account password alone would not be enough, because the attacker would also need the random Secret Key, which is never sent to 1Password. The cost: you must keep your emergency kit safe, since you need the Secret Key to sign in on a new device.

What happens when a password manager is breached

The best known real example is LastPass. In its December 22, 2022 notice, LastPass said an attacker had copied a backup of customer vault data. According to LastPass:

  • The stolen vaults held encrypted fields, such as usernames, passwords and secure notes, protected with 256 bit AES and a key derived from each user's master password.
  • They also held some unencrypted data, such as website URLs, which revealed which sites people had accounts with.
  • Basic account details, such as names, emails, billing addresses and IP addresses, were also taken.
  • LastPass said it does not know users' master passwords, and warned that customers with weaker master passwords or older, weaker settings faced a higher risk of their vaults being guessed. It suggested those customers consider changing the passwords stored in their vaults.

The lessons for any password manager user:

What attackers get What protects you
Encrypted vault A long, unique master password (and, with 1Password, the Secret Key)
Unencrypted details, such as site addresses or your email Nothing; expect targeted phishing
Time to guess offline Slow key derivation and a passphrase too long to guess

Encrypted data does not expire. A stolen vault can be attacked for years, which is why a weak master password is a long term risk.

Is putting everything in one place worth the risk?

It is a fair question: a password manager is one big target. But compare it with the alternatives most people actually use.

  • Reusing a few passwords. When any one of the many sites you use is breached, criminals try the leaked email and password everywhere else. One leak can open your email, shopping and social accounts within hours.
  • Writing passwords in a notes app or spreadsheet. Those files are usually not protected by a separate strong key, and they sync to the cloud like everything else.
  • Memorizing unique, long passwords for every account. Almost nobody manages this for more than a handful of sites.

A password manager swaps many weak points for one well defended one: an encrypted vault, protected by a master password only you know, plus two step verification on the account. Even in the LastPass case, the company's own notice placed the higher risk on customers with weaker master passwords. For nearly everyone, that is a far better deal than reuse.

What to do if your password manager reports a breach

  1. Read the company's notice on its own website, not in an email link.
  2. If your master password was short, reused or old, change it, then change the passwords for your most important accounts stored in the vault, starting with email and banking.
  3. Turn on two step verification for the password manager account, or move to a passkey if it is offered.
  4. Expect phishing. Attackers may know which sites you use. Learn how to spot a phishing email or text.
  5. Check whether your email appeared in other breaches. Here is how to check.

How to make your password manager as safe as it can be

  • Use a long passphrase of several random, unrelated words as your master password, and use it nowhere else.
  • Add two step verification or a passkey to the password manager account. Our comparison of two factor authentication methods helps you pick.
  • Set up recovery now: the emergency kit, recovery code or recovery contact your manager offers.
  • Keep your devices updated and locked. Encryption protects the vault on the server; your screen lock and updates protect it on your phone and laptop.
  • Let the manager fill passwords. 1Password, for example, says it fills passwords only on the site where they were saved, which helps you notice fake sites. If your manager will not fill, stop and check the address.

Common mistakes

  • Reusing the master password. If it leaks from another site, your vault is next.
  • Choosing something short because you type it often. Use your phone's fingerprint or face unlock for daily access and keep the master password long.
  • Storing the master password in the vault only. Keep a paper copy somewhere safe at home until you know it by heart.
  • Thinking a breach means the manager failed you. If your master password was strong, the encryption did its job. The real cleanup is phishing awareness.

New to password managers? Start with our hint on letting a password manager remember your passwords, then consider switching your key accounts to passkeys.

Frequently asked questions

Can the password manager company see my passwords?

With a well designed manager, no. Your vault is encrypted on your own device with a key made from your master password, and the company only stores the scrambled result. Bitwarden, 1Password and Apple all say they cannot read the contents of your vault.

What happens if a password manager company is hacked?

Attackers may get encrypted copies of vaults plus some account details. They then have to guess each master password, one vault at a time. A long, unique master password makes that practically impossible; a short or reused one makes it far easier.

What happens if I forget my master password?

Because the company never knows your master password, it usually cannot reset it and recover your vault. Set up the recovery options your manager offers, such as an emergency kit, recovery code or trusted contact, before you need them.

Are browser and phone password managers as safe as paid ones?

They use the same basic ideas. Apple says Passwords and Keychain are end to end encrypted by default, and Google offers optional on-device encryption for Google Password Manager. Pick one you will use every day and protect the account behind it.

What makes a good master password?

Length and uniqueness. Use a passphrase of several random, unrelated words that you use nowhere else, and add two step verification to the password manager account.

Sources

  1. Bitwarden: Bitwarden Security Whitepaper
  2. 1Password Support: About the 1Password security model
  3. Apple Support: iCloud data security overview
  4. Google Account Help: Get started with on-device encryption
  5. LastPass: Notice of Security Incident (December 22, 2022)