Intended user, situation and improvement
- User: someone who reuses one password across sites, such as a student or a parent setting up family accounts.
- Situation / risk: they do not know whether that password has leaked, and typing a real password into a random "checker" site is itself a risk.
- Improvement: keyhole checks it against the Pwned Passwords breach list while sending only 5 characters of its SHA-1 hash, shows exactly what was sent, and gives one plain verdict plus a strong passphrase if needed.
What it does
- Breach check with k-anonymity (Pwned Passwords range API with padding); the match happens in the page.
- Strength estimate with zxcvbn and a plain-language time to guess.
- One verdict: "Change it now", "Too easy to guess", "Could be stronger" or "Looks good".
- Passphrase generator over the EFF 7,776-word list using the browser's secure random generator (12.9 bits per word).
- A Content Security Policy that only allows the breach API, so the password cannot be sent anywhere else.
One safer outcome
iloveyou2 looks like a password with a clever digit added. keyhole shows it was found 945,829 times in breaches and says change it now.
One limitation
"Not found" only covers breaches the service knows about, and the guess time is an estimate from zxcvbn, not a guarantee.
Results (real, from npm run eval against the live API)
- The 1,000 most common passwords: all 1,000 found in breaches (median 348,425 times).
- 500 generated passphrases (4 and 6 words): 0 found, all scored 4 of 4.
How I built it
Plain JavaScript in the browser (Web Crypto SHA-1, fetch), zxcvbn 4.4.2 vendored, the EFF wordlist, GitHub Pages. 10 unit tests run with no network, plus a live evaluation script.
Challenges
Showing the privacy guarantee rather than just claiming it: the "What was sent" panel prints the request, the prefix and the reply size. Making the random choice unbiased (rejection sampling instead of modulo).
What I learned
How k-anonymity range queries work, and that a breach match should override any strength score: one of the 1,000 common passwords still scored 2 of 4 on strength alone.
What's next
Offline mode for the strength check, a local check of a password-manager export, Hindi translations, and a "what to do next" guide.
Built during the event vs pre-existing
All code was written on 1 Dec 2026 (see the commit history). Pre-existing components used: zxcvbn 4.4.2 (MIT), the EFF large wordlist (CC BY 3.0), the Have I Been Pwned Pwned Passwords API (CC BY 4.0), and the SecLists common-password list (MIT, evaluation only).
AI assistance
Built with AI-assisted coding: an AI coding assistant helped write the code, tests and documentation. The README states this.
Built With
- css
- github
- have-i-been-pwned
- html
- javascript
- web-crypto
- zxcvbn