Skip to content
ChimPass

How password managers work

Last updated

A password manager is an app that creates, stores and fills in your passwords for you. Everything is kept in an encrypted "vault" that can only be unlocked with one main password (often called a master password), and sometimes a fingerprint or face scan as well. Because the manager remembers every password, each one can be long, random and unique. You only need to remember the main password. Good password managers encrypt your vault on your own device before anything is synced, so the company running the service can't read your passwords.

The basic idea

Without a password manager, most people do one of three things: reuse the same few passwords, use simple variations of one password, or reset their password every time they forget it. Reuse is the dangerous one. When one website is breached, attackers take the leaked email addresses and passwords and try them on email providers, banks and shops. This is called credential stuffing, and it's behind a large share of account takeovers.

A password manager removes the need to reuse anything. It generates a different random password for every site and fills it in automatically. The NCSC recommends password managers for exactly this reason.

What happens when you save a password

  1. You sign up to a website, and the password manager offers to generate a password, typically 16 to 20 random characters.
  2. It saves that password in your vault, along with the website's address and your username.
  3. The vault is encrypted on your device using a key derived from your main password.
  4. If you use the manager on more than one device, the encrypted vault is synced through the provider's servers.

The important detail is step 3. In well-designed managers, the encryption key never leaves your device and is never sent to the provider. The provider stores only scrambled data it can't read. This is often called end-to-end encryption or a zero-knowledge design.

What happens when you log in

When you visit a site, the manager checks the web address against the ones saved in your vault. If it matches, it offers to fill in your username and password.

This address matching is an underrated security feature. If a scam email links you to a convincing fake of your bank's site at a slightly different address, the manager won't recognise it and won't offer to fill anything in. That hesitation is often the first clue that something is wrong.

How the main password protects everything

Your main password is the one secret that unlocks the vault, so it needs to be:

  • Strong: five or six random words is a good choice, because you'll type it often and need to remember it. See how to create a memorable password.
  • Unique: never used anywhere else.
  • Not stored in the vault: keep a copy somewhere safe and offline while you learn it, if you must.

Managers turn your main password into an encryption key using a deliberately slow process, so that each guess an attacker makes takes real computing effort. That's why a stolen copy of an encrypted vault isn't immediately useful to an attacker, provided the main password is strong.

Most managers also let you unlock with a fingerprint or face scan on your phone or laptop. That's a convenience on top of the main password, not a replacement for it.

What if you forget the main password?

With a zero-knowledge design, the provider can't reset your main password and recover your data, because it never had the key. Most managers offer a recovery method you set up in advance, such as a recovery code, a recovery key file, or a trusted contact. Set this up on day one and store it somewhere safe, such as printed in a drawer at home.

Types of password manager

Built into your browser or device. Chrome, Edge, Firefox and Safari (with iCloud Keychain) all include a password manager. They're free and convenient, and much better than reusing passwords. They work best if you stay within one company's devices and browsers.

Standalone password managers. Dedicated apps that work across every browser and operating system. They usually add features such as secure sharing with family or colleagues, breach alerts, storage for notes and card details, and more control over how the vault is protected. Some are free; others charge a small monthly or yearly fee.

Either type is a big improvement on remembering passwords yourself.

Is it risky to keep all your passwords in one place?

It's a fair question. The honest answer is that a password manager concentrates risk in one place, but it removes much larger risks: reuse, weak passwords and phishing. A good manager with a strong main password and two-factor authentication turned on is far safer than any alternative most people realistically use.

Password managers have been attacked and some have had security incidents. When choosing one, look for:

  • End-to-end encryption, with the provider unable to read your vault
  • Two-factor authentication for the account itself
  • A clear account of past security incidents and how they were handled
  • Independent security audits, published or summarised publicly
  • An easy way to export your data, so you're never locked in

Password managers and passkeys

Many sites now offer passkeys, which replace a password with a cryptographic key stored on your device, unlocked by your fingerprint, face or PIN. Passkeys can't be phished or reused. Most password managers can now store passkeys as well as passwords and sync them between your devices. The FIDO Alliance, which develops the standard, has a plain explanation of how they work.

Getting started

  1. Choose a manager: your browser's built-in one is fine to start.
  2. Create a strong, memorable main password and set up account recovery.
  3. Turn on two-factor authentication for the manager.
  4. Save passwords as you log in to sites over the next few weeks.
  5. Change your most important passwords first (email, bank, shopping) to new random ones from the manager.

You don't need to move everything on day one. Changing the important accounts first gets you most of the benefit. If you're setting this up for colleagues, see generating passwords for a team.

More questions? The password FAQ has short answers, or browse all guides.