PressVane
Tech

How password managers work and whether to trust one

The article explains how password managers store credentials in an encrypted vault protected by a master password. It highlights risks such as compromised passwords, device vulnerabilities, and encryption flaws, and compares alternatives like manual storage and browser autofill.

Tech — How password managers work and whether to trust one
  • Password managers store all your passwords in an encrypted vault that only you can unlock.
  • The main risks are a compromised master password, a vulnerable client device, or a flaw in the service’s encryption implementation.
  • Alternatives such as manual password storage or browser‑based autofill each have their own security trade‑offs.

Password managers work by keeping every credential you create inside a single encrypted file, called a vault, which you unlock with one strong master password. As long as the vault remains encrypted and the master password stays secret, the manager can safely generate, store, and fill passwords for you.

How the encryption model protects your vault

When you first set up a password manager, the application creates a random symmetric secret – typically 256‑bit AES (Advanced Encryption Standard) – to encrypt the vault. This secret is never stored on the server; instead, it is derived from your master password using a key‑stretching function such as PBKDF2, Argon2, or scrypt. These functions repeatedly hash the master password together with a unique salt, making brute‑force attacks computationally expensive.

For example, an illustrative configuration might run 200,000 iterations of PBKDF2 with a 16‑byte salt, turning a 12‑character master password into a 256‑bit encryption secret. Even if an attacker obtained the encrypted vault, they would need to guess the master password and repeat the expensive derivation for each guess, slowing a cracking attempt to perhaps a few hundred guesses per second on a modern GPU.

Once the secret is derived, the vault’s contents—each entry’s username, password, URL, and optional notes—are encrypted with AES‑GCM (Galois/Counter Mode), which provides both confidentiality and integrity. The resulting ciphertext, along with the salt and iteration count, is uploaded to the provider’s cloud storage, allowing you to sync across devices.

Where the real risks lie

The strongest guarantee of a password manager is that the provider never sees your master password or the derived encryption secret. However, several attack vectors can still compromise your data:

  • Master password weakness. If the master password is short, common, or reused elsewhere, an attacker who obtains the encrypted vault can eventually guess it.
  • Client‑side compromise. Malware on a device that has the vault unlocked can read plaintext passwords directly from memory or from the manager’s export files.
  • Implementation flaws. Bugs in the cryptographic library, improper handling of salts, or insecure default settings can undermine the theoretical security of the model.
  • Server‑side breaches. While the provider cannot decrypt the vault without the master password, a breach could expose metadata (e.g., account email, timestamps) that aids phishing or credential‑stuffing attacks.

Because the vault is only as secure as the environment in which it is unlocked, many experts recommend using a dedicated, up‑to‑date device for password management and enabling multi‑factor authentication (MFA) on the manager’s account.

Practical implications for everyday use

From a user perspective, the encryption model translates into several concrete practices:

  • Choose a master password with at least 16 characters, mixing upper‑ and lower‑case letters, numbers, and symbols. A passphrase such as “Correct Horse Battery Staple 2024!” meets length and entropy recommendations.
  • Enable the manager’s built‑in MFA, which typically adds a time‑based one‑time password (TOTP) or hardware token requirement before the vault can be synced.
  • Keep the client software updated. Security patches often address the very implementation flaws that could expose the vault.
  • Consider using a “zero‑knowledge” provider, meaning the service’s architecture is designed so that even the company’s engineers cannot retrieve your encryption secret.

These steps dramatically reduce the likelihood that an attacker can move from a stolen encrypted file to usable credentials.

Alternatives to a cloud‑based password manager

Not everyone is comfortable storing any data on a remote server, even in encrypted form. Two common alternatives are:

  • Local encrypted file. You can store a CSV or JSON file encrypted with a tool like GPG (GNU Privacy Guard). The file lives only on devices you control, but you lose automatic syncing and the convenience of autofill.
  • Browser‑based password storage. Modern browsers offer built‑in password managers that save credentials locally and optionally sync via the browser’s own cloud service. These typically use similar encryption methods but are tied to the browser’s ecosystem and may lack the same level of independent security audits.

Both alternatives avoid a third‑party provider, yet they introduce new challenges: manual backup procedures for local files, and reliance on the browser’s update cycle for security patches. In practice, the convenience and security of a dedicated password manager often outweigh these concerns for most users.

Choosing and using a password manager responsibly

When selecting a manager, evaluate the following criteria:

  • Open‑source code. Publicly auditable implementations allow independent researchers to verify the cryptographic correctness.
  • Zero‑knowledge architecture. Confirm that the provider cannot derive your master password or encryption secret.
  • Transparency of security practices. Look for published security assessments, bug bounty programs, and clear incident‑response policies.
  • Cross‑platform support. Ensure the manager works on all devices you use, with secure synchronization mechanisms.

After installation, follow a disciplined workflow: never store the master password in a browser or note‑taking app, lock the vault when stepping away from a device, and regularly review stored entries for outdated or duplicated passwords.

  • Generate a unique, high‑entropy master password and store it only in your memory.
  • Enable multi‑factor authentication on the password manager account.
  • Keep the manager and operating system patched to the latest security releases.
  • Periodically export an encrypted backup of your vault and store it offline.
  • Audit saved credentials every six months and replace any that have been reused.

While the cryptographic foundations of password managers are well‑understood, debates continue over the best balance between convenience and decentralisation. Questions remain about the long‑term viability of cloud‑based syncing, the impact of emerging quantum‑computing threats on current encryption algorithms, and how effectively zero‑knowledge designs can be verified in practice. Ongoing research and independent audits will shape the next generation of secure credential storage.

Photo: Neal Agarwal / wikimedia (CC BY-SA)

  • password manager security
  • encrypted password vault
  • master password risks
  • device vulnerability
  • encryption implementation flaws
  • alternative password storage