django-pwned-validator-0.0.6
توضیحات
A PwnedPassword validator for Django
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | django-pwned-validator-0.0.6 |
| نام | django-pwned-validator |
| نسخه کتابخانه | 0.0.6 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Craig Loftus |
| ایمیل نویسنده | craigloftus@gmail.com |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/django-pwned-validator/ |
| مجوز | MIT |
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.apps.PwnedConfig',
...
]
AUTH_PASSWORD_VALIDATORS = [
{
'NAME': 'pwned.validators.PwnedValidator',
},
...
]
Compatibility
~~~~~~~~~~~~~
Supports Django 2.2 to 3.2 on Python 3.5 to 3.8.
نیازمندی
| مقدار | نام |
|---|---|
| >=2.25.1,<3.0.0 | requests |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl django-pwned-validator-0.0.6:
pip install django-pwned-validator-0.0.6.whl
نصب پکیج tar.gz django-pwned-validator-0.0.6:
pip install django-pwned-validator-0.0.6.tar.gz