No project description provided
Project description
django-hibp
This package provides a password validator for Django that validates passwords against HIBP.
Getting started
Install using pip:
pip install django-hibp
Add HIBPPasswordValidator
to your AUTH_PASSWORD_VALIDATORS
setting:
AUTH_PASSWORD_VALIDATORS = [
...
{
'NAME': 'django_hibp.HIBPPasswordValidator',
'OPTIONS': {
'fail_on_error': False,
}
},
]
Since this plugin relies on an external API, this introduces a new point of failure. If the Pwned Passwords API is inaccessible, the check will fail. To avoid breaking your application in this case, set fail_on_error
to False
.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file django_hibp-0.2-py3-none-any.whl
.
File metadata
- Download URL: django_hibp-0.2-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 098dae5caa1a0d51986343e87b1bbb01e08809e17d11ca7f0ceb3a79acca3825 |
|
MD5 | 35aacf739c379f1ca8c73e51267d7575 |
|
BLAKE2b-256 | f207e63db8af01dacd87798f381f20de8d9f2263ba9657086629bbe61a85b251 |