Password Managers Explained
How a password manager encrypts and fills your logins, what the trade-offs are and how to switch without lockouts.
Key takeaways
- A password manager makes it practical to use a long, unique, random password for every account.
- The vault is encrypted with a key derived from your master secret, often combined with device or account keys.
- Domain-matched autofill is a useful phishing alarm: if your login isn't offered, stop and check the address.
- Built-in, cloud-based and local-file managers trade convenience against control in different ways.
- Protect the manager with a second factor and set up recovery before you depend on it.
A password manager is a program that creates, stores and fills your logins from an encrypted vault. You remember one strong secret to open the vault, and it handles a different random password for every account. Most also store passkeys, payment cards, secure notes and one-time code secrets.
The main benefit is that unique passwords become effortless. A second benefit is quieter: a good manager offers your login only on the website it was saved for, which helps you notice a look-alike page. The cost is that the vault becomes important, so you need to protect it and plan how to get back in.
What happens inside
When you create a vault, your master password is run through a key derivation function, a deliberately slow calculation such as PBKDF2 or Argon2, to produce an encryption key. The slowness barely affects you, who do it once at unlock, but makes each of an attacker's guesses expensive.
That key (usually by way of other keys) encrypts the vault. In services that sync, encryption and decryption happen on your device, and the provider stores the scrambled result. This design is often described as zero-knowledge or end-to-end encrypted: the company isn't supposed to be able to read your passwords. Details differ, and some products add a second secret kept only on your devices, so that a stolen server copy can't be cracked by guessing the master password alone.
Biometric unlock is a convenience layer. Your fingerprint or face releases a key protected by the device; it doesn't replace the master secret, which you may be asked for again after a restart or a set period.
The main types
Built into your browser or operating system. These are free, already there and easy. Apple, Google, Microsoft and the major browser makers offer password storage with sync across their ecosystems. They work best if you stay within one family of devices and browsers.
Standalone cloud services. Dedicated apps run on most platforms and browsers, and typically add shared vaults, finer security reports and family or team administration. Some are free in part and some charge a subscription; check current terms with the provider.
Local or self-hosted. A program such as one using the KeePass file format keeps the vault as a file you control. Nothing is stored with a company unless you put it there. You are responsible for syncing and backing it up.
Any of the three is a large improvement over reusing passwords. The best one is the one you will actually use on every device.
Autofill and phishing
A manager stores the web address alongside each login. On a look-alike domain, such as one with a swapped letter or an extra word, it has no match and offers nothing. Treat that silence as a warning. Resist the urge to copy and paste the password manually until you have checked the address carefully.
Autofill has limits. Some legitimate companies use several domains, so you may need to add one to an entry. Prefer managers or settings that require a click before filling, so that hidden form fields on a page can't collect data unnoticed. The browser extension is the part doing the filling, and its permissions are discussed in password manager extensions.
What a manager does not protect against
- Malware on an unlocked device. Software with your level of access may capture what you type or read what is on screen. Infostealers target stored logins specifically.
- Giving away the secret. A fake page that imitates your manager's own sign-in could capture the master password. Open it from the app or a bookmark.
- A weak master password. If an attacker obtains an encrypted vault, a guessable secret can be cracked offline.
- Session theft. Once you're signed in to a site, a stolen cookie doesn't need your password.
- Vendor incidents. Providers can be breached. Strong encryption and a strong master secret are what stand between a stolen copy and your logins. Unencrypted details, such as saved addresses in some designs, may be exposed.
Setting it up well
- Choose a unique master passphrase of several random words, following the passphrase method.
- Turn on a second factor for the manager account, ideally an authenticator app, passkey or security key.
- Save the recovery kit or codes the product provides, and put them somewhere secure and offline.
- Install on each device and add the browser extension from the official store listing.
- Set auto-lock to a sensible time, shorter on shared or portable machines.
- Import existing passwords, then securely delete the export file. An exported CSV is plain text.
- Turn off the other saver. Two managers offering to save the same login causes stale copies.
Moving your logins and cleaning up
Import brings years of clutter along. Work through it in stages. Start with email, then money, then anything with a saved card, then the rest. For each important account, generate a new password, save it, then sign out and sign back in to confirm the new one works before moving on.
Use the built-in report to find reused, weak and breached entries. Delete duplicates, and close accounts you no longer want.
For bookmarks and logins when switching browsers, see moving bookmarks and passwords.
How to judge a manager before trusting it
You can't inspect the code yourself in most cases, but you can ask useful questions and read the vendor's security documentation.
- Is the vault encrypted on your device before it is sent? The documentation should say so plainly and describe what the provider can and cannot see.
- Which fields are encrypted? Passwords certainly should be. Check whether website addresses, titles and notes are too.
- How is the key derived? Look for a named, slow function and settings that can be strengthened. Older accounts sometimes keep weaker defaults until you update them.
- Has it been independently audited? Published reports with a clear scope are more informative than a badge. An audit covers a point in time.
- How are incidents communicated? A history of clear, prompt notices is a good sign.
- Can you leave? Export to a common format keeps you from being stuck.
- Does it work where you need it? Check your browsers, phone, any work computer and offline access.
Open source code lets outsiders review a product, which helps, but it is only as good as the review it actually receives. Be cautious with unknown apps in a store that imitate familiar names. Reach the download through the maker's own site.
Using one at work and at home
Keep work and personal vaults separate. An employer's manager is administered by the employer, who may be able to recover or remove access to it, and you will lose it when you leave. Your private logins shouldn't live there.
For a team, put shared credentials in shared collections with the smallest group that needs them, remove people promptly when roles change and rotate anything they could see. A manager records who has access today; it can't make someone forget a password they have already viewed. Where a service supports individual user accounts, create those instead of sharing one login, since each person can then be removed cleanly and actions can be traced.
Planning for lockout and emergencies
Because a provider with zero-knowledge design cannot read your vault, it often cannot reset your master password either. Options vary by product: recovery codes, a trusted family organizer who can help, account recovery contacts or recovery through a device already signed in. Learn which apply to you today, before you need them.
Avoid circles. If your email password is only in the vault, and the vault's recovery goes only to that email, a lost phone can lock you out of both. Keep at least one independent way in.
Think about family too. Emergency access features let a chosen person request access after a waiting period. A sealed note in a safe place works as well.
Common questions
Isn't it risky to put everything in one place?
It concentrates risk, yes. In exchange, it removes the much more common risk of reuse. A strong master secret, a second factor and a clean device make the single place hard to open.
Should one-time codes live in the same vault?
It's convenient and still stops attackers who only have a leaked password. If someone opens your vault, though, they get both. For the most valuable accounts, keep the second factor separate, such as on a security key.
What if the company shuts down?
Most managers can export your data. Export occasionally only if you can protect the copy, ideally in encrypted storage, and delete it when you're done.