This site explains how digital privacy tools work — encryption, tracking, and identity protection. It is not legal or cybersecurity advice. What this is.

How a Password Manager Encrypts a Stored Credential

A password manager is, at its core, an encrypted database. Every username, password, URL, and note a user stores is transformed into ciphertext before it ever leaves the device or reaches a remote server. The encryption is not applied in bulk to the whole vault as a single file; it operates at the record level, meaning each credential entry is wrapped in its own encrypted envelope using a symmetric key that the service provider is architecturally prevented from possessing.

This piece covers the specific cryptographic steps that occur between the moment a user saves a credential and the moment that credential exists as ciphertext in storage. It describes the components involved, the points where the process can produce results that differ from common assumptions, and what independent audits can and cannot verify about the mechanism.

Take Back Control of Your Windows PC and Its Privacy

Copy-paste command-line guides to switch off Windows tracking, see which apps are talking to the internet, and automate PC upkeep. For Windows 10 and 11.

Learn more

From Plaintext Entry to Encrypted Vault Record

When a credential is submitted to a password manager — whether typed manually or captured by a browser extension — the plaintext values exist in device memory only transiently. The encryption sequence begins immediately on the client side, meaning on the user's own device, before any data is written to local storage or transmitted over a network.

The first step is key derivation. The vault encryption key is not the master password itself; it is a cryptographic key produced by running the master password through a key derivation function (KDF). Functions such as PBKDF2, bcrypt, and Argon2 are designed to be computationally expensive, meaning they require significant processing time and memory to complete. This cost is intentional: it slows down any attacker attempting to test large numbers of candidate passwords against a stolen key. How a master password derives an encryption key through this process is a separate mechanism from the encryption step itself, but it produces the key that makes encryption possible.

Once the vault key exists in memory, the password manager uses it to encrypt individual credential records. The dominant algorithm in current implementations is AES-256 in GCM mode (Advanced Encryption Standard, 256-bit key, Galois/Counter Mode). AES-256 is a symmetric cipher, meaning the same key is used to encrypt and decrypt. GCM mode adds authenticated encryption, which means the ciphertext includes an authentication tag. If any byte of the ciphertext is altered in storage or transit, decryption fails and the tamper is detected before any plaintext is returned.

Each encryption operation also uses a unique initialization vector (IV), sometimes called a nonce. The IV is a random value that ensures two identical passwords encrypted under the same key produce different ciphertext outputs. Without a unique IV per record, an attacker who obtained the encrypted vault could identify duplicate passwords by comparing ciphertext values — a significant inference even without decryption. The IV is stored alongside the ciphertext because it is needed for decryption, but it does not need to be kept secret.

The resulting encrypted record — ciphertext plus authentication tag plus IV — is what gets written to local storage and, in syncing architectures, transmitted to a remote server. At no point in this sequence does the vault key leave the device in plaintext form. This architectural property is what password manager providers mean when they describe a "zero-knowledge" model: the server stores encrypted blobs it cannot decrypt because it never receives the key. When a vault syncs across devices, the same encrypted blobs are transferred, and each receiving device derives the key locally from the master password before decryption can occur.

Decryption is the reverse: the client derives the vault key from the master password, retrieves the encrypted record, verifies the authentication tag, and decrypts the ciphertext to recover the plaintext credential in memory. The plaintext exists in memory only long enough to be used, after which the application is designed to overwrite or release that memory.

The Technical Components Involved in Credential Encryption

The client application. This is the software running on the user's device — desktop app, mobile app, or browser extension. All encryption and decryption operations occur here. The client is the only environment where the vault key exists in usable form. It handles key derivation, IV generation, AES-256-GCM encryption, and memory management of plaintext values.

The key derivation function (KDF). A KDF such as Argon2id or PBKDF2-HMAC-SHA256 transforms the master password and a random salt into a fixed-length encryption key. The salt, stored alongside the encrypted vault, ensures that two users with identical master passwords produce different keys. The iteration count or memory cost parameter of the KDF determines how computationally expensive derivation is, which directly affects resistance to brute-force attacks. If an attacker obtained an encrypted vault and attempted to crack it by testing candidate passwords, the KDF cost is the primary technical barrier — a dynamic explored in detail when examining how a leaked password hash actually gets cracked.

AES-256-GCM cipher. The symmetric encryption algorithm that transforms plaintext credential data into ciphertext. The 256-bit key length means there are 2²⁵⁶ possible keys — a number large enough that exhaustive search is not a practical attack with current or near-future computing resources. GCM mode provides both confidentiality and integrity in a single pass.

The remote storage server. In cloud-syncing architectures, the server receives and stores encrypted vault records. The server's role is persistence and synchronization, not decryption. It operates as an encrypted data store, handling ciphertext it is not designed to decrypt. The server does process authentication tokens and account metadata, which are distinct from vault encryption keys.

The browser extension API layer. Browser extensions interact with the DOM (Document Object Model) of web pages to detect login forms and inject credentials. This API layer is a distinct surface from the vault encryption mechanism itself. The extension must briefly hold a plaintext credential in memory to fill a form field — a transient exposure that occurs after decryption, not during it. The phrase "data manager API" in common searches often refers to this browser-extension-to-page interface, which is a credential delivery mechanism rather than a storage encryption mechanism.

Where the Encryption Model Produces Unexpected Results

Memory exposure during active use. Decrypted credentials must exist in device memory to be usable. The window between decryption and memory release is a real attack surface. Malware with sufficient privileges on the host device can read process memory and extract plaintext credentials regardless of how strong the vault encryption is. Encryption at rest does not protect data that has already been decrypted for use.

Weak master passwords undermine key derivation. The security of the entire encryption chain depends on the entropy of the master password. A KDF with a high iteration count slows brute-force attacks but does not eliminate them if the master password is a common word or short phrase. The mathematical cost imposed by Argon2id or PBKDF2 is a multiplier on attacker effort, not an absolute barrier. A master password with low entropy reduces the effective key space to a range that purpose-built cracking hardware can traverse.

The zero-knowledge model applies to vault contents, not metadata. A password manager provider operating a zero-knowledge architecture cannot read stored passwords. It can, however, observe metadata: when the vault was accessed, from which IP addresses, how many records exist, and sync frequency. This metadata is not encrypted under the vault key and is not covered by the zero-knowledge claim. The scope of what "zero-knowledge" means in a given implementation varies by provider and is not standardized.

KDF parameters are sometimes set too low. The iteration count or memory cost of a KDF is a configuration choice, and older or misconfigured implementations have shipped with values far below current recommendations. NIST and OWASP publish minimum iteration counts for PBKDF2; implementations below those thresholds are materially weaker against offline attacks on a stolen vault, even if the algorithm itself is sound.

Browser extension permissions create a broad trust boundary. A browser extension with access to all page content can, by design, read any text on any page the browser visits. The extension's credential-injection capability requires broad DOM access. This permission model means a compromised or malicious extension could intercept credentials at the point of form fill, after decryption, without ever touching the encrypted vault.

What Security Audits Verify — and What They Do Not

Independent security audits of password managers typically cover two categories: source code review and penetration testing. A source code audit can verify that the declared encryption algorithm (e.g., AES-256-GCM) is actually implemented, that IV generation uses a cryptographically secure random number generator, that the KDF iteration count meets a defensible threshold, and that plaintext values are not inadvertently written to logs or disk. These are verifiable, specific claims.

Penetration testing evaluates the attack surface of the client application and, where applicable, the server infrastructure. It can identify memory handling errors, insecure API endpoints, and authentication weaknesses. A clean penetration test result reflects the state of the codebase at the time of the test; it does not reflect the state of the software after subsequent updates.

Audits do not verify runtime behavior on an arbitrary user's device. They cannot confirm that the software performs correctly in the presence of device-level malware, that browser extension permissions are not abused by a future update, or that the provider's server-side metadata practices align with stated privacy policies. The FTC has taken enforcement action against companies that made deceptive security claims, including claims about encryption practices that did not match actual implementation — a record that illustrates the gap between marketing language and audited technical reality.

A SOC 2 Type II report, sometimes cited by password manager providers, attests to organizational controls over a defined period. It is an operational audit, not a cryptographic one. It does not independently verify that AES-256-GCM is correctly implemented; it attests that the organization followed defined processes. The two types of audit address different questions and neither is a substitute for the other.

Password managers that publish audit reports make those reports available for independent review. The existence of a published audit is a verifiable fact; the scope and findings of that audit require reading the actual report, not the summary in marketing materials.

The encryption model underlying a password manager is well-understood cryptography applied to a specific problem: storing credentials such that only the holder of a master password can decrypt them. The mechanism is sound in its design; the meaningful variables are implementation quality, KDF configuration, and the security of the device environment in which decryption occurs.

Sources

Note: This explains how digital privacy and security tools work technically. It is not legal or cybersecurity advice, and it is not a substitute for a reader's own judgment about a real security concern. Check the cited sources for current guidance.

5 desks. How it works, not what to do.

Start from the top