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 Detects a Reused Password

A password manager stores credentials inside an encrypted vault, but detection of reused passwords is a separate operation that happens at the application layer, not inside the encryption layer itself. The vault may hold dozens or hundreds of login entries, each encrypted individually, and the reuse-detection engine must compare passwords across those entries without requiring the user to decrypt and manually inspect each one.

This piece covers the specific mechanism by which a password manager identifies when the same password string appears in more than one stored credential — what data structures are involved, how the comparison is performed, and where the process produces results that differ from what the interface implies.

Check Your Credit and Better Understand What’s Shaping Your Score

Access free credit scores, credit monitoring, and personalized insights to better understand your credit and financial options.

Learn more

How the Reuse Index Is Built and Queried

When a vault is unlocked, the application decrypts each stored credential entry in memory. At that point, the plaintext password field for each entry becomes temporarily available to the application process. The reuse-detection routine reads each plaintext password string and passes it through a deterministic hashing function — typically a fast, non-cryptographic hash, or in some implementations a truncated cryptographic hash — producing a fixed-length digest for each password. These digests are stored in a temporary in-memory index keyed by hash value, with each key mapping to a list of the credential entries that produced it.

Once the index is built, any hash key that maps to more than one entry identifies a reused password. The application can then surface those entries in a report or flag them in the vault interface. Because the index is built from the plaintext passwords that are already in memory after decryption, no additional decryption step is needed for the comparison itself. The index exists only in volatile memory for the duration of the session and is not written to the encrypted vault file on disk.

This process is closely related to how each credential is encrypted before it is stored: the encryption wraps the plaintext, and the reuse check operates on the unwrapped plaintext only after the vault key has been applied. The two operations — encryption and reuse detection — are sequentially dependent but structurally separate.

Some implementations extend this logic to a breach-corpus check. In that variant, each in-memory plaintext password is hashed using SHA-1, and only the first five hexadecimal characters of the hash are sent to an external API that returns a list of all hash suffixes in a known-breach dataset that match that prefix. The application then checks locally whether the full hash of the stored password appears in the returned list. This k-anonymity model means the full password hash — and certainly the plaintext — is never transmitted. The technique was formalized by Troy Hunt and is documented in the Have I Been Pwned API specification. The reuse check and the breach check are independent operations that may run together in a single audit pass.

Password reuse is one of the most consequential credential weaknesses identified by the FTC and CISA. When one service suffers a breach, attackers use automated credential-stuffing tools to test the same username-and-password pair against other services. The reuse-detection mechanism exists to surface this exposure before an external attacker exploits it.

Components Involved in Reuse Detection

The vault decryption layer. Before any comparison can occur, the vault must be unlocked. How the vault key is stored and retrieved determines when plaintext passwords become available in memory. The reuse-detection routine depends entirely on this prior step; it cannot operate on ciphertext.

In-memory credential store. After decryption, the application maintains a structured object in RAM representing all credential entries. Each entry typically contains fields for the service URL, username, and password. The reuse-detection routine iterates over this object, reading only the password field.

Hash function. A deterministic function maps each password string to a fixed-length digest. For internal deduplication, a fast hash (such as a CRC variant or xxHash) is sufficient because collision resistance against adversarial input is not required — the attacker is not present in this operation. For breach-corpus comparison, SHA-1 is used specifically because the external API is indexed by SHA-1 hashes.

Deduplication index. A hash map in memory stores the relationship between each digest and the credential entries that produced it. This structure is the core of the reuse check: entries sharing a digest are flagged.

Optional external breach API. When breach checking is enabled, the application constructs a partial hash prefix and issues an HTTPS request to an external dataset endpoint. The response is a list of matching hash suffixes with occurrence counts. The local application performs the final match. No plaintext or full hash leaves the device.

Audit report interface. The application aggregates results from the deduplication index and any breach-corpus matches, then presents them through the vault's security dashboard. This layer translates raw hash-collision data into human-readable entry labels.

Where Reuse Detection Produces Unexpected or Incomplete Results

Entries not stored in the vault are invisible to the check. The reuse-detection routine only covers credentials that have been saved to the vault. Passwords used on sites where the user bypassed the save prompt, or credentials stored in a browser's native credential store rather than the password manager's vault, are not included in the index. The audit report therefore reflects only the vault's contents, not the user's full credential landscape.

Near-duplicate passwords are not detected. The hash-based comparison is exact. A password of Correct$Horse7 and a variant of Correct$Horse8 produce entirely different digests and are not flagged as related. The mechanism has no semantic or fuzzy-matching layer. Users who rotate passwords by incrementing a number or appending a character receive no reuse warning, even though those passwords may be trivially guessable once one variant is known — a risk documented in CISA guidance on password hygiene.

Breach-corpus checks are bounded by the dataset's age. The external breach dataset is a snapshot. A password that appears in a breach not yet indexed by the dataset will not be flagged. The absence of a flag is not confirmation that a password has never appeared in any breach.

In-memory exposure during audit. The reuse-detection pass requires all vault passwords to be in plaintext in memory simultaneously. On devices with insufficient memory isolation — or on systems where another process can read application memory — this represents a transient exposure window. This is a property of the audit operation specifically; normal vault use decrypts only the credential being filled at a given moment. The broader question of how credentials move from vault to login field is covered in the mechanics of autofill, where only a single entry is decrypted per fill event.

Sync timing can cause stale results. On a multi-device setup, if a password is changed on one device and the vault has not yet synced to another, an audit run on the unsynced device will compare against outdated password values. The reuse report reflects the local vault state at the moment of the check, not a real-time global view of all stored credentials.

What a Security Audit of This Mechanism Actually Measures

Independent security audits of password managers typically cover the cryptographic correctness of the vault encryption scheme, the key derivation function, and the authentication flow. These audits confirm whether the implementation matches the published specification — for example, whether AES-256-GCM is used where claimed, or whether the PBKDF2 or Argon2 iteration count meets a documented threshold. CISA's guidance on software assurance identifies these as the primary audit targets for credential-management software.

Reuse-detection logic is rarely the primary subject of a cryptographic audit. Because it operates on already-decrypted data in memory, it does not involve a cryptographic primitive in the same way that vault encryption does. An audit may confirm that the k-anonymity breach-check implementation correctly truncates the hash before transmission, but it will not validate the completeness of the deduplication index or the currency of the breach corpus.

What an audit does not show: whether all credential entries in a real-world vault are captured by the reuse scan, whether the breach dataset used by the API is up to date, or whether near-duplicate passwords are surfaced. These are application-behavior properties, not cryptographic correctness properties, and they fall outside the scope of a standard cryptographic audit.

The FTC has noted in its guidance on data security that reuse of passwords across services is a primary vector for account takeover following a breach. Password managers that implement reuse-detection are responding to this documented risk pattern, but the detection mechanism's accuracy is bounded by the constraints described above — it is not assured to be exhaustive.

Reuse detection in a password manager is a structural comparison of decrypted data, not a cryptographic operation in itself — its accuracy is bounded by what has been saved to the vault, the exactness of the hash match, and the currency of any external breach dataset it consults.

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