A Django package for custom password validation.
Project description
Django Password Validator
A Django package for custom password validation. Extends Django password validation options to include minimum uppercase, minimum lowercase, minimum numerical, and minimum special characters. This was created in an attempt to keep up with industry standards for strong user passwords.
This package works for python 3.6+.
Prerequisites
Requires Django 2.2 or later. You can install the latest version of Django via pip:
pip install django
Alternatively, you can install a specific version of Django via pip:
pip install django=3.2
NOTE: See the django-project documentation for information on non-deprecated Django versions.
Installation
pip install django_advanced_password_validators
Development installation
git clone https://github.com/shanathvemula/django_advanced_password_validators
cd django-advanced_password_validation
pip install --editable .
Usage
Add the custom validators to your AUTH_PASSWORD_VALIDATORS setting in your Django project's settings file:
# settings.py
AUTH_PASSWORD_VALIDATORS = [
{
'NAME': 'django_advanced_password_validators.validators.password_validators.PasswordValidators',
'OPTIONS': {
"min_length": 8,
"max_length": 128,
"min_length_digit": 1,
"min_length_alpha": 1,
"min_length_special": 1,
"min_length_lower": 1,
"min_length_upper": 1,
"special_characters": "~!@#$%^&*()_+{}\":;'[]"
}
}
]
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 Distribution
File details
Details for the file django_advanced_password_validators-0.1.tar.gz
.
File metadata
- Download URL: django_advanced_password_validators-0.1.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8fa0295b3471626b55af9e159b167d001141aa07da8f21d82fcafad15eacb9f |
|
MD5 | bca95369ada0f7035c1e73ff2aec05aa |
|
BLAKE2b-256 | 361e30437af23680cd4a33c2f569e86f61905fa9d8b07029fb5741ba5e3ec861 |
File details
Details for the file django_advanced_password_validators-0.1-py3-none-any.whl
.
File metadata
- Download URL: django_advanced_password_validators-0.1-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6f22ed971c0e7e743e4788b9ed978abd58594de8fd0668ea82e8c6472cbe198 |
|
MD5 | 91b7f47eb1532a6fad3e57f4dc14ccdb |
|
BLAKE2b-256 | f530c7702a8813b471714d698478ca52cb5aebcc5315a4f5b74a05287b3b154e |