Pwned Passwords check egress environment

Has a password appeared in a data breach? It is hashed on your device, and only the first five characters of its SHA-1 hash are sent, to the Pwned Passwords service of Have I Been Pwned, when you press Ask or Enter.

Nothing is sent while you type: your browser hashes the password with SHA-1 here, on this device. Press Ask, or Enter in this field, to send only the first five characters of that hash to api.pwnedpasswords.com, the Pwned Passwords service of Have I Been Pwned; its privacy terms apply. The password and the other 35 characters of the hash are never sent, stored or put in the page address.

Hashing (Web Crypto SHA-1 over the password's UTF-8 bytes), the split into five sent and 35 kept characters, the reading of the answer and the comparison run on this device and are pinned by golden vectors. The endpoint, the padding header and the answer's format follow the service's API documentation, read 2026-10-26. The live answer carries no golden-vector guarantee.

How it works

Pwned Passwords is the corpus of passwords that Have I Been Pwned has collected from data breaches, each stored as the SHA-1 hash of the password's UTF-8 bytes. Its range search applies k-anonymity: a client sends only the first five characters of a hash and receives every suffix in the corpus that begins with them, each with the number of times it has been seen, so the comparison happens on the client and the service cannot tell which password, among all those sharing the prefix, was checked.

This page asks with padding on, the Add-Padding: true header the documentation describes: the service then adds lines with a count of 0, so that the size of the encrypted answer does not give the prefix away to someone watching the traffic, and this page discards those lines before comparing. Because a custom header needs the service's permission, the browser first sends a CORS preflight to the same address, carrying the same five characters and nothing more. The request carries no cookies and no Referer header, is never cached, and is sent once, when you press Ask or Enter. The documentation warns that checking while a password is still being typed can let someone who sees the requests arriving at the service work the password out; this page sends nothing while you type.

The email search of Have I Been Pwned is not offered here. Searching by address needs an API key that comes with a subscription, its k-anonymity range mode included, and the service asks that such a key is never used from a browser page, where every visitor could read it; the direct search would also send the whole address. Pwned Passwords needs no key, has no rate limit according to its documentation, and accepts requests from any website, which is why it can run here.

Pwned Passwords data: Have I Been Pwned (haveibeenpwned.com). The service sets no licence or attribution requirement on the Pwned Passwords API and welcomes attribution, which is given here.

Sources

Have I Been Pwned API v3, Pwned Passwords section (range search, padding, incremental searching, CORS, rate limiting, licence; 2026-10-26) · haveibeenpwned.com/Passwords (2026-10-26) · Troy Hunt, Enhancing Pwned Passwords Privacy with Padding (5 March 2020; read 2026-10-26) · W3C Web Cryptography API, SHA-1 digest · WHATWG Encoding Standard, TextEncoder · WHATWG Fetch Standard, credentials and cache modes · W3C Referrer Policy, no-referrer (all 2026-10-26)

← back to /dev/out