A password manager makes a promise that sounds impossible: it will remember three hundred unique, random, unguessable passwords, and you only have to remember one. Behind that promise is a specific and elegant cryptographic design — and understanding it is the fastest way to answer the question everyone actually asks: is this thing safe?
The short version: a password manager is an encrypted file, a key derived only on your device, and sync machinery that transmits nothing but ciphertext. The long version follows, because the details are where the security actually lives.
The Core: An Encrypted Vault
Everything starts with a file — your vault — containing every password, note, and identity item you have saved. That file is encrypted with AES-256, the same algorithm protecting HTTPS and disk encryption. When your manager is locked, what exists on disk and in the cloud is ciphertext: mathematically indistinguishable from noise without the key.
This is worth sitting with, because it inverts how most services treat your data. A breached email service leaks readable messages; a breached password manager leaks encrypted blocks. The difference between those two outcomes is the entire architecture of the product.
Where the Key Comes From: Key Derivation
Your master password never becomes the encryption key directly, for two reasons: passwords are often guessable, and a direct key would be fast to attack. Instead, the manager runs your master password through a key-derivation function — Argon2, PBKDF2, or scrypt — with two jobs.
First, it stretches the password into a full-length 256-bit key, with a salt ensuring that identical passwords produce different keys across users. Second, and more importantly, it is deliberately slow: tens of thousands to hundreds of thousands of internal iterations, or a memory-hard workload in Argon2's case. This is the mechanism that makes brute-forcing a stolen vault expensive. An attacker with your ciphertext can guess master passwords, but each guess costs the full derivation — turning a billion guesses a second into thousands, which collapses the practical attack space. Our comparison of PBKDF2, bcrypt, and Argon2 covers how these functions differ and why Argon2 is the modern default.
Zero Knowledge: The Design That Defines the Category
The strongest managers are zero-knowledge, and the term has a precise meaning: the company's servers never receive anything from which your passwords could be derived.
Walk through what happens when you unlock. Your device derives the key locally. Your device decrypts the vault locally. Neither the key nor the vault's plaintext ever touches the network. Sync works on ciphertext: the encrypted blob uploads and downloads, and only your devices hold the derived key. The company cannot read your vault, cannot recover it if you lose your master password, and — crucially — cannot be compelled to hand over anything readable, because it does not possess it.
This is why "zero-knowledge" is not marketing fluff but a checkable architectural claim: our guide to what makes a password manager secure lists the specific properties to verify, and zero-knowledge password managers explained covers the model and its trade-offs — including the hard edge that a forgotten master password means the vault is genuinely gone.
What Happens When You Save and Fill a Password
The daily mechanics are worth understanding, because they are where convenience and security meet.
When you save a login, the manager encrypts the entry with your session key and writes it into the vault, then syncs the updated ciphertext. When you visit a site, the manager's browser extension matches the URL against vault entries, requests your authorization (biometric, PIN, or master password unlock), and fills the form directly in the page. The password travels from encrypted storage to the page without passing through your clipboard or your keyboard.
The URL-matching step is a real security boundary: a manager should refuse to fill your bank password on a lookalike domain, and autofill behavior — fill on click versus auto-fill — is a meaningful setting. Managers also generate passwords, and this is where they quietly change your security posture: generated passwords are random, unique per site, and never reused, which is the exact property that stops one breach from cascading into ten accounts. Our guide on how hackers crack password hashes shows why uniqueness and length are what actually matter when a site's password database leaks.
The Master Password: The Single Point of Failure
The honest cost of this architecture is that the master password carries everything. Its strength is not one factor among many; it is the whole game. A four-word random passphrase (correct-horse-battery-style) is worth a thousand 12-character patterns, because length and randomness — not symbol substitutions — are what make derivation-hardened brute force infeasible.
That single point of failure is also why reputable managers support recovery options with care: some offer emergency kits — a printed copy of an encrypted key — while zero-knowledge ones generally cannot "reset" without destroying the vault. Write the master password down and store the paper somewhere physically secure. That advice sounds analog, and it is: the weakest link in a well-designed password manager is a human memory, not any cipher.
What a Breach of the Manager Actually Means
Because sync servers hold ciphertext, a breach of the company's infrastructure exposes encrypted blobs — not passwords. Attackers who obtain vault data face the key-derivation wall: every guess of your master password costs full PBKDF2 or Argon2 work. With a strong master password, the vault is practically unbreakable; with a weak one, the slow function buys time, not safety. This is the design working as intended, and it has played out in real incidents where vault data leaked without passwords being exposed. The corollary is worth stating plainly: the security of the whole system concentrates in one secret, chosen once, by you.
Choosing Between the Manager Models
Managers differ mainly in where the vault lives. Cloud-synced managers offer seamless cross-device sync of ciphertext, which is what most people want. Browser-based managers trade some of that for convenience but often skip hardened derivation. Offline managers keep the vault on your devices with no company in the middle, at the cost of manual sync. Our offline vs cloud password manager comparison walks through the trade-offs, and the choose the right password manager for your use case guide matches models to situations.
Every model uses the same core design: local encryption, hardened key derivation, and sync of ciphertext only. What varies is who holds the ciphertext and how it moves.
The Bottom Line
A password manager is an AES-256-encrypted vault whose key is derived from your master password on your device — never transmitted, never stored, unknowable to the company. Key-derivation functions make brute-forcing a stolen vault thousands of times slower per guess, which is what turns a good master password into a practically unbreakable lock. Zero-knowledge architecture means even a breach of the manager's servers yields only ciphertext. The entire system concentrates its risk in one secret — so choose a long, random master password, write it down somewhere physical, and let the manager handle the hundreds of unique passwords that no human could remember.