Skip to main content

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


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

File hashes

Hashes for django_advanced_password_validators-0.1.tar.gz
Algorithm Hash digest
SHA256 a8fa0295b3471626b55af9e159b167d001141aa07da8f21d82fcafad15eacb9f
MD5 bca95369ada0f7035c1e73ff2aec05aa
BLAKE2b-256 361e30437af23680cd4a33c2f569e86f61905fa9d8b07029fb5741ba5e3ec861

See more details on using hashes here.

File details

Details for the file django_advanced_password_validators-0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for django_advanced_password_validators-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d6f22ed971c0e7e743e4788b9ed978abd58594de8fd0668ea82e8c6472cbe198
MD5 91b7f47eb1532a6fad3e57f4dc14ccdb
BLAKE2b-256 f530c7702a8813b471714d698478ca52cb5aebcc5315a4f5b74a05287b3b154e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page