Skip to content

Pwned Passwords Cloudflare Worker

Maintained
HaveIBeenPwned/PwnedPasswordsCloudflareWorker

The Cloudflare Worker that serves Have I Been Pwned's Pwned Passwords range API (SHA-1 and NTLM), with caching and authenticated cache purges.

View on GitHub
Stars
415
Forks
27
Watchers
415
Open issues
2

Overview

This is the Cloudflare Worker behind Have I Been Pwned’s Pwned Passwords API. It serves password-hash ranges at GET /range/{prefix} — the k-anonymity model that lets apps check whether a password has appeared in a breach without sending the password itself — and accepts mode=ntlm for NTLM ranges.

Architecture

One public Worker contains three entrypoints:

  • RangeEntrypoint (default) — public routing, range responses, padding and response caching
  • BlobEntrypoint — private retrieval and caching of range files from Azure Blob Storage
  • PurgeEntrypoint — private, authenticated cache invalidation

Only the default entrypoint is public; the other two are reached through self service bindings, never a public URL. It’s a good real-world example of a high-traffic Worker.

Similar open-source projects, ranked by shared categories and tags.

All Security projects →