Security News
The Push to Ban Ransom Payments Is Gaining Momentum
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
django-advanced-password-validation
Extends Django password validation options in an attempt to keep up with industry standards for strong user passwords.
Readme
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 has been tested with python 3.9+.
Requires Django 3.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.
Install django_advanced_password_validation via pip:
pip install django_advanced_password_validation
git clone https://github.com/ezrajrice/django_advanced_password_validation.git
cd django_advanced_password_validation
pip install --editable .
The optional validators must be configured in the settings.py file of your django project to be actively used in your project.
INSTALLED_APPS = [
...
'django_advanced_password_validation',
...
]
AUTH_PASSWORD_VALIDATORS = [
...
{
'NAME': 'django_advanced_password_validation.advanced_password_validation.ContainsDigitsValidator',
'OPTIONS': {
'min_digits': 1
}
},
{
'NAME': 'django_advanced_password_validation.advanced_password_validation.ContainsUppercaseValidator',
'OPTIONS': {
'min_uppercase': 1
}
},
{
'NAME': 'django_advanced_password_validation.advanced_password_validation.ContainsLowercaseValidator',
'OPTIONS': {
'min_lowercase': 1
}
},
{
'NAME': 'django_advanced_password_validation.advanced_password_validation.ContainsSpecialCharactersValidator',
'OPTIONS': {
'min_characters': 1
}
},
...
]
Here is a list of the available options with their default values.
Validator | Option | Default |
---|---|---|
ContainsDigitsValidator | min_digits | 1 |
ContainsUppercaseValidator | min_uppercase | 1 |
ContainsLowercaseValidator | min_lowercase | 1 |
ContainsSpecialCharactersValidator | min_characters | 1 |
MaximumLengthValidator | max_length | 128 |
MaxConsecutiveCharactersValidator | max_consecutive | 3 |
ConsecutivelyIncreasingDigitValidator | max_consecutive | 3 |
ConsecutivelyDecreasingDigitValidator | max_consecutive | 3 |
This project is licensed under the MIT License - see the LICENSE.md file for details.
FAQs
Extends Django password validation options in an attempt to keep up with industry standards for strong user passwords.
We found that django-advanced-password-validation demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
Application Security
New SEC disclosure rules aim to enforce timely cyber incident reporting, but fear of job loss and inadequate resources lead to significant underreporting.
Security News
The Python Software Foundation has secured a 5-year sponsorship from Fastly that supports PSF's activities and events, most notably the security and reliability of the Python Package Index (PyPI).