K-anonymity range query
The password is hashed with SHA-1 entirely in the browser. Only the first five hex characters of that 40-character hash are sent to HIBP's range endpoint (for example /range/5BAA6); the full hash, and the password itself, never leave the browser. This mirrors the k-anonymity model HIBP publishes for Pwned Passwords, built so the service never receives enough of the hash to reconstruct which password was checked.