This package provides a password validator for Django that checks submitted passwords against the Pwned Passwords API.
To protect the security of the password being checked a range search is used. Specifically, only the first 5 characters of a SHA-1 password hash are sent to the API. The validator then locally looks for the full hash in the range returned.
Installation
pip install django-pwned-validator
Modify your settings.py to install the app and enable the validator:
INSTALLED_APPS = [
'pwned.apps.PwnedConfig',
...
]
AUTH_PASSWORD_VALIDATORS = [
{
'NAME': 'pwned.validators.PwnedValidator',
},
...
]
Compatibility
Supports Django 2.2 to 3.2 on Python 3.5 to 3.8.
Metadata
Release files for django-pwned-validator 0.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-pwned-validator-0.0.6.tar.gz | 4.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_pwned_validator-0.0.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.8 kB
Release files / django-pwned-validator-0.0.6.tar.gz
| Download URL | django-pwned-validator-0.0.6.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dcb62fd9dbcc02c6771b6dd1c1f22fe2e1564785248baea54a152c5886c29000
|
|
BLAKE2b-256 checksum How to use checksums |
a0f815192c198a13104fa0233e285f80f8729037cb27423bda7cb3ecf8506d7d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.6 CPython/3.8.10 Linux/4.15.0-142-generic
|
Release files / django_pwned_validator-0.0.6-py3-none-any.whl
| Download URL | django_pwned_validator-0.0.6-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a813faf6b0beaee71fdc6e5fb066c9d7f6e784e5764a960a319149a2d9cebf42
|
|
BLAKE2b-256 checksum How to use checksums |
699936013d32ad0e6ee72d0c4038d11ae32740adb7ecbd9becb72690b1ccc3cb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.6 CPython/3.8.10 Linux/4.15.0-142-generic
|