django_advanced_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 has been tested with python 3.9+.
Prerequisites
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.
Installation
Normal installation
Install django_advanced_password_validation via pip:
pip install django_advanced_password_validation
Development installation
git clone https://github.com/ezrajrice/django_advanced_password_validation.git
cd django_advanced_password_validation
pip install --editable .
Usage
The optional validators must be configured in the settings.py file of your django project to be actively used in your project.
/my-cool-project/settings.py
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
}
},
...
]
Options
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 |
Authors
- Ezra Rice - Initial work - ezrajrice
License
This project is licensed under the MIT License - see the LICENSE.md file for details.
Acknowledgments
Metadata
Release files for django-advanced-password-validation 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django_advanced_password_validation-1.2.0.tar.gz | 11.5 kB | Without provenance | Details for django_advanced_password_validation-1.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_advanced_password_validation-1.2.0-py3-none-any.whl | Python 3 | none | any | Details for django_advanced_password_validation-1.2.0-py3-none-any.whl |
Total release size: 20.6 kB
Release files / django_advanced_password_validation-1.2.0.tar.gz
| Download URL | django_advanced_password_validation-1.2.0.tar.gz |
|---|---|
| Size | 11.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
632b068e8bc0a428e18c8ae5e3ba2a104829ce905bda91772998c65256440a38
|
|
BLAKE2b-256 checksum How to use checksums |
573a95cfa70cab92eb2024dbf34066b2ef4053ea37b40cee1a5bf335c025826c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|
Release files / django_advanced_password_validation-1.2.0-py3-none-any.whl
| Download URL | django_advanced_password_validation-1.2.0-py3-none-any.whl |
|---|---|
| Size | 9.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5ae2538099eda910791000efcd971bcc7c1e9eefbf5d466a94afe9b1f9de188c
|
|
BLAKE2b-256 checksum How to use checksums |
13b2f704097638fc4253b9c983881c3f009a78a1f17af9ad496ad0b4c5f562d7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|
Security for django-advanced-password-validation 1.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.