Guide
How do password managers work?
A password manager remembers a different random password for every account, so you only have to remember one. Here is how it keeps them safe, and what to look for in one.
By Mark Stoumann ·
The best advice about passwords, a long, random, different one for every account, is impossible to follow from memory. A password manager makes it effortless: it creates the passwords, stores them, fills them in and syncs them to your other devices. The obvious worry is putting everything in one place. The way good password managers are built answers it.
What is password management?
Password management is the whole job of looking after your passwords: creating a strong one for every account, keeping them somewhere safe, using them without typing them, and changing the ones that are weak, reused or leaked. You can do it with a notebook, but a password manager is the tool built for it, and it does most of the work for you.
Password managers come in a few kinds:
- Built into your phone or browser, such as Apple’s Passwords app and Google Password Manager. Free, and already on your devices.
- Dedicated apps that sync through the provider’s servers, with the same app on every system and browser.
- Local password managers such as KeePass, which is free and open source and keeps everything in one encrypted database file that you store and sync yourself.
- Business password managers, the dedicated apps with a company plan: shared vaults for teams, an admin console, and access that IT can grant to new staff and remove when someone leaves.
How a password manager works, step by step
- You choose one master password. It is the only password you still have to remember, and the provider never receives it.
- Your device turns it into a key. A slow key-derivation function makes the encryption key from the master password, on your device, each time you unlock.
- You add your logins. Import them from your browser, or let the manager offer to save each one as you sign in.
- The vault is encrypted on your device and only the encrypted copy is synced, so your other devices can unlock it with the same master password.
- It fills in the right password on the right site, matching the address of the page to the address saved with each login.
- It creates new passwords and checks the old ones: a built-in generator makes a random password for each new account, and a security report flags weak, reused and leaked passwords.
The sections below explain how each step keeps your passwords safe.
Your vault is encrypted before it leaves your device
Everything you save, passwords, passkeys, notes, sits in an encrypted vault. Good password managers use end-to-end encryption: the vault is encrypted and decrypted only on your own devices, and the company’s servers only ever store and sync the encrypted result. This is often called zero-knowledge: the provider can’t read your passwords, and neither can anyone who breaks into its servers.
The master password and key derivation
The key that unlocks the vault is made from your master password. It is never stored and never sent to the provider. Instead, your device runs the master password through a deliberately slow function, called key derivation, that turns it into the encryption key.
“Deliberately slow” is the point. Bitwarden, for example, runs PBKDF2 600,000 times by default, the number the OWASP security project recommends, or offers Argon2id, which also needs a lot of memory. That costs your device a fraction of a second when you unlock, but makes every guess just as expensive for an attacker holding a stolen vault, so a long master password is out of reach. 1Password goes a step further and mixes in a 34-character Secret Key that is kept only on your devices, so a stolen vault can’t be attacked by guessing the master password at all.
The master password is therefore the one password you must get right. Make it a passphrase of six or seven random words from the passphrase generator, use it nowhere else, and turn on 2FA for the account.
Autofill that spots fake websites
A password manager saves each password with the website it belongs to and only offers to fill it in on that site. A phishing page at a look-alike address gets nothing, which is a useful warning: if your password manager doesn’t offer your login on what looks like your bank, stop and check the address before you type anything by hand.
What the LastPass breach taught us
In 2022 attackers copied a backup of LastPass customers’ vaults. The passwords inside were encrypted, so they couldn’t simply be read, but the breach showed where the details matter:
- Website addresses weren’t encrypted, so attackers could see which sites each person had accounts with, useful for targeted phishing.
- Old accounts had weak settings. The default was 100,100 rounds of key derivation, but older accounts that had never been upgraded had far fewer, some just 5,000, making their master passwords much faster to guess.
- Weak master passwords were the real risk. A long random master password kept a vault safe even with old settings; a short or reused one did not.
The lesson is not to avoid password managers, but to pick one that encrypts all of the vault, uses strong key derivation by default, and has its security checked by outside auditors.
Built-in or dedicated?
| Built in (Apple, Google) | Dedicated app | |
|---|---|---|
| Cost | Free | Usually a free plan and a paid one |
| Devices | Best within one maker’s devices | Same app on every system and browser |
| Passkeys and leak warnings | Yes | Yes, in most |
| Sharing, notes, reports | Basic | Usually more |
Apple’s Passwords app works on iPhone, iPad and Mac, and on Windows through iCloud for Windows. Google Password Manager is built into Chrome and Android. If all your devices come from one of them, that may be all you need. If you mix an iPhone with a Windows PC, or share passwords with family on different systems, a dedicated manager is easier.
What to look for
- End-to-end encryption of the whole vault, including website addresses.
- Strong key derivation by default, such as Argon2id or PBKDF2 with hundreds of thousands of rounds.
- Independent security audits that are published.
- Apps for every device you use, with passkey support.
- A way to export your data, so you can leave if you want to.
Whichever you choose, start by letting it save the passwords you already use, then replace the weak and reused ones it flags with new ones from the password generator, beginning with your email.
Frequently asked questions
What is password management?
Password management is how you create, store, use and change passwords so that every account has a strong one of its own. In practice that means a password manager: an app that generates the passwords, keeps them in an encrypted vault and fills them in. At work it also covers sharing logins in a team and the rules an IT department sets.
How does a password manager know which password to fill in?
It saves each login with the web address of the site, or the app, where you created it. When you open a login page, it compares the page’s address with the saved ones and offers only the matching logins. That is also why it won’t fill your bank password into a look-alike phishing site.
Are password managers safe?
A good one is far safer than the alternatives, which in practice are reusing passwords or choosing weak ones. Your vault is encrypted on your own device with a key made from your master password, so the company stores only scrambled data. The risks that remain are a weak master password, malware on your device, and a provider that designs its encryption badly, which is why reputation and independent audits matter.
What happens if the password manager company is hacked?
Attackers get encrypted vaults they can’t open without each user’s master password. They can try to guess master passwords offline, which is why a long, unique master password and strong key-derivation settings matter so much. With a password manager that adds a secret key, such as 1Password, a stolen vault can’t be attacked by guessing the master password alone.
Is the password manager built into my browser or phone good enough?
For many people, yes. Apple’s Passwords app and Google Password Manager encrypt your passwords, sync them, generate strong ones, support passkeys and warn about leaks. A dedicated manager is worth it if you use devices from different makers, want to share passwords with family, or want features like secure notes and detailed security reports.
What if I forget my master password?
Because the provider can’t read your vault, it usually can’t reset the master password for you either. Most offer some recovery option, such as a recovery code, an emergency kit or unlocking with a trusted device; set it up on day one and keep it somewhere safe.
Should I store passkeys and 2FA codes in my password manager?
Passkeys, yes: that is how most people sync them between devices. Two-factor codes are convenient there, but for your email and the password manager itself, keep the second factor somewhere else, so one master password never unlocks everything.