Additional libraries for validating passwords in Django 1.11 or later.
Project description
Additional libraries for validating passwords in Django 1.11 or later.
django-password-validators requires Django 1.11 or greater.
The application works well under python 3.x and 2.x versions.
Django version after the number 1.9, allows you to configure password validation. Configuration validation is placed under the variable AUTH_PASSWORD_VALIDATORS.
Installation
Just install django-password-validators via pip:
$ pip install django-password-validators
Validators
UniquePasswordsValidator
Validator checks if the password was once used by a particular user. If the password is used, then an exception is thrown, of course.
For each user, all the passwords are stored in a database. All passwords are strongly encrypted.
Configuration…
In the file settings.py we add
INSTALLED_APPS = [ ... 'django_password_validators', 'django_password_validators.password_history', ... ] AUTH_PASSWORD_VALIDATORS = [ ... { 'NAME': 'django_password_validators.password_history.password_validation.UniquePasswordsValidator', }, ... ] # If you want, you can change the default hasher for the password history. # DPV_DEFAULT_HISTORY_HASHER = 'django_password_validators.password_history.hashers.HistoryHasher'
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 Distribution
Built Distributions
Hashes for django-password-validators-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5906a77714a72f30abc98cb118cc0f357ce0bf730e921e3c9788672c44bfd7ab |
|
MD5 | b372f6e1f1f0e15f80eee4fe450a8523 |
|
BLAKE2b-256 | 18e7152ff8c25af695c4e1bb56bc9b7bc4eab2c114ef3b6437c4580b655e39c2 |
Hashes for django_password_validators-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f0b5869d83e4629aa19f2df55da770c43b323a2284155f0b8688e022da3a3f45 |
|
MD5 | 55133d2d5f074687afc24787ce1ca5fa |
|
BLAKE2b-256 | 37abcd4fc90a84dd6430d8ed5692606fcb5c84c8ac89ba9ce058fc2e6fc0bbc0 |
Hashes for django-password-validators-1.0.0.linux-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 735abc1d0a295dc4e96261f2f62966089717168148414112ab6f5a56989d6ba7 |
|
MD5 | 04b412e63e92b0c8321f9b0c90216d73 |
|
BLAKE2b-256 | 7bbd16225b9c4aaea7e25f2718c3594ac525793a996007a1f60d36d311fe9fbe |