Skip to main content
CI status image

pwned-passwords-django provides helpers for working with the Pwned Passwords database from Have I Been Pwned in Django powered sites. Pwned Passwords is an extremely large database of passwords known to have been compromised through data breaches, and is useful as a tool for rejecting common or weak passwords.

There are three main components to this application:

All three use a secure, anonymized API which never transmits any password or its full hash to any third party.

Usage

The recommended configuration is to enable both the validator and the automatic password-checking middleware. To do this, make the following changes to your Django settings.

First, add the validator to your AUTH_PASSWORD_VALIDATORS list:

AUTH_PASSWORD_VALIDATORS = [
    # ... other password validators ...
    {
        "NAME": "pwned_passwords_django.validators.PwnedPasswordsValidator",
    },
]

Then, add the middleware to your MIDDLEWARE list:

MIDDLEWARE = [
    # .. other middlewares ...
    "pwned_passwords_django.middleware.pwned_passwords_middleware",
]

For more details, consult the full documentation.

Release files for pwned-passwords-django 5.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pwned-passwords-django 5.2.0
File Size Uploaded
pwned_passwords_django-5.2.0.tar.gz 43.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pwned-passwords-django 5.2.0
File Interpreter ABI Platform
pwned_passwords_django-5.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 54.8 kB

Release files / pwned_passwords_django-5.2.0.tar.gz

Download URL pwned_passwords_django-5.2.0.tar.gz
Size 43.1 kB
Tags Source
SHA-256 checksum
How to use checksums
dfa7c4fc8879396b8304759260c5fb8b6055c07ed9241010e5bc319f195d5197
BLAKE2b-256 checksum
How to use checksums
aef5242f5ceb391832d284c815135f99872ad2f109aaa8b398bcf9cbe3665bd6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.0 CPython/3.13.0

Release files / pwned_passwords_django-5.2.0-py3-none-any.whl

Download URL pwned_passwords_django-5.2.0-py3-none-any.whl
Size 11.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a8666fb427479796ee9940e92df834a188ca7246905e4b9dc7be6248415ff5df
BLAKE2b-256 checksum
How to use checksums
0d9bdbbeb3e72501190584847e5d6b119b5e4f1e15b11a804c4e2ccbca438f2f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.0 CPython/3.13.0

Release history Release notifications | RSS feed

This release

5.2.0 This release

2 release files

5.1.3

2 release files

5.1.2

2 release files

5.1.1

2 release files

5.1.0

2 release files

5.0.0

2 release files

2.1

2 release files

2.0

2 release files

1.6.1

2 release files

1.6

2 release files

1.5

2 release files

1.4.1

2 release files

1.4

2 release files

1.3.2

2 release files

1.3.1

2 release files

1.3

2 release files

1.2.1

2 release files

1.2

2 release files

1.1

2 release files

1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page