check_password_breach
Check if a password has been exposed in data breaches and evaluate its strength, using a privacy-preserving hash method that never sends the plaintext.
Instructions
Check if a password has appeared in known data breaches and assess its strength.
Uses the HaveIBeenPwned k-anonymity API — only the first 5 characters of the SHA-1 hash are sent externally. The plaintext password never leaves the server.
Args: password: The password to check (never logged or stored)
Returns: dict with keys: breached, breach_count, strength, score (0-7), entropy_bits, length, cost_usd
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| password | Yes |