Security · API

Password Strength API

A password analysis API that returns entropy, breach status and crack-time estimates, using partial-hash lookups with Have I Been Pwned.

Demo currently unavailable

View source Space details
Password Strength API, application interface
Interface / Password Strength API Demo currently unavailable
01 / The problem

The challenge.

Password strength feedback needs to account for common patterns and known breaches, alongside entropy and crack-time estimates.

02 / The system

The approach.

A FastAPI microservice with entropy scoring, pattern detection and Have I Been Pwned k-anonymity breach checks. The API receives the submitted password and computes its SHA-1 hash; only the first five hash characters are sent to the external breach service.

03 / Under the surface

Engineering decisions.

  1. HIBP k-anonymity lookup sends only a SHA-1 prefix to Have I Been Pwned; the FastAPI service still receives the submitted password.

  2. Entropy scoring plus pattern detection for a meaningful strength signal.

  3. Documented FastAPI endpoints, packaged with Docker.

04 / What came out of it

The outcome.

Returns entropy, breach status and crack-time estimates through documented API endpoints for integration into authentication workflows.