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/ezrajrice/django-advanced_password_validation.git
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_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.0.tar.gz.

File metadata

File hashes

Hashes for django_advanced_password_validators-0.0.tar.gz
Algorithm Hash digest
SHA256 18d27acad6489dd8a0975d5e60bd27c2eba8c11dd6de62b365c6ffd4f550ac0f
MD5 26fa4607c102a01a016e5d051591793c
BLAKE2b-256 0faca67b5c169e0c6c091bf187dd67e6c52cb470060e689ebd373749c33c735e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_advanced_password_validators-0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d1304a898b3c1a4906ea5766b1cdcd4e2739d547a022a6226b126e738bfd3241
MD5 16d16a4c57cb586f60290021af55bbed
BLAKE2b-256 240d4b71f40c78076ab1fa832dc585d3c62af057515e2fde1aade9e982d995e2

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