A Pwned Passwords validator for Django
Project description
Django Pwned Passwords Validator
================================
This package provides a password validator for Django that checks submitted
passwords against the `Pwned Passwords API <https://haveibeenpwned.com/API/v2>`_.
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
~~~~~~~~~~~~
.. code-block:: sh
pip install django-pwned-validator
Modify your `settings.py` to install the app and enable the validator:
.. code-block:: python
INSTALLED_APPS = [
'pwned',
...
]
AUTH_PASSWORD_VALIDATORS = [
{
'NAME': 'pwned.validators.PwnedValidator',
},
...
]
Compatibility
~~~~~~~~~~~~
Supports Django 1.11.x and 2.0 on Python 3.5 and 3.6.
================================
This package provides a password validator for Django that checks submitted
passwords against the `Pwned Passwords API <https://haveibeenpwned.com/API/v2>`_.
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
~~~~~~~~~~~~
.. code-block:: sh
pip install django-pwned-validator
Modify your `settings.py` to install the app and enable the validator:
.. code-block:: python
INSTALLED_APPS = [
'pwned',
...
]
AUTH_PASSWORD_VALIDATORS = [
{
'NAME': 'pwned.validators.PwnedValidator',
},
...
]
Compatibility
~~~~~~~~~~~~
Supports Django 1.11.x and 2.0 on Python 3.5 and 3.6.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for django-pwned-validator-0.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fdd305b6fbf057c98b1a53b11ecd80abc7a510dffdfd3d807596a5597b4f920d |
|
MD5 | 9dd5750c0954aa42ad47d003d58c9238 |
|
BLAKE2b-256 | 9094210405eb791c8e39e43e88768a0ca7cf4353c648d02a756beefe08299bf7 |
Close
Hashes for django_pwned_validator-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0438c455fb7f79c00dab4a11c49a8b018f0d06a4932ad1a094b2febc517625c |
|
MD5 | 5c3894283f0a44a4668ae69a5ae051d4 |
|
BLAKE2b-256 | b9324c9ab7c782ff60d146fac2f4ae08baadd013b849d1dc69bd31a021523b4f |