django-password-validators
Additional libraries for validating passwords in Django.
Decision gist · record as of 2026-08-14
Yes, if you need password complexity or history validation beyond Django's defaults. The package is stable, has no vulnerabilities, and low install friction. However, dormant maintenance (no updates in 977 days) means you should verify compatibility with your Django version and be prepared to fork or patch if issues arise. Not necessary if Django's built-in validators meet your security requirements.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Django 3.2 or later and a database migration to store password history.
- Low friction: pure Python wheel with only django as a runtime dependency.
- Maintenance is dormant (last commit 2024-07-29, no updates in 977 days), but the package is marked Production/Stable and carries no known vulnerabilities.
License · maintenance · safety
BSD (permissive) — BSD permissive license means you can use, modify, and distribute this package freely in commercial and open-source projects with minimal restrictions.
last release 2023-12-11 (977 days) · last repo commit 2024-07-29 · 53 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 90,815 downloads/mo, #13,563 on PyPI
Alternatives
Verify before relying
pip install django-password-validators
# In settings.py:
INSTALLED_APPS = [
'django_password_validators',
'django_password_validators.password_history',
]
AUTH_PASSWORD_VALIDATORS = [
{
'NAME': 'django_password_validators.password_history.password_validation.UniquePasswordsValidator',
'OPTIONS': {'last_passwords': 5}
}
]
# Then: python manage.py migrate- Whether the package works with Django versions after 4.1 (latest documented example is 4.1).
- Current test coverage and whether dormant status reflects lack of maintenance or stable maturity.
What it is and what it does
django-password-validators extends Django's built-in password validation framework with two main validators: UniquePasswordsValidator prevents users from reusing recent passwords (configurable history depth, with all hashes stored encrypted in the database), and PasswordCharacterValidator enforces minimum counts of specific character types (digits, letters, special characters, case variants) in new passwords.
The package integrates directly into Django's AUTH_PASSWORD_VALIDATORS setting and requires a database migration to track password history. It supports Python 3.7 through 3.12 and is classified as Production/Stable, though development has been dormant since mid-2024. No known vulnerabilities are recorded.
Use it for
- Enforce password complexity rules (e.g., require 2 uppercase, 3 special chars) in Django admin or user registration.
- Prevent users from cycling through a small set of passwords by blocking reuse of the last N passwords.
- Meet compliance requirements (e.g., NIST, corporate policy) that mandate character-type diversity in passwords.
- Add password history auditing by storing encrypted hashes of all or recent user passwords in the database.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need password complexity or history validation beyond Django's defaults.
The package is stable, has no vulnerabilities, and low install friction. However, dormant maintenance (no updates in 977 days) means you should verify compatibility with your Django version and be prepared to fork or patch if issues arise. Not necessary if Django's built-in validators meet your security requirements.
Install
django-password-validators on PyPI
Before you install
Low friction: pure Python wheel with only django as a runtime dependency. Maintenance is dormant (last commit 2024-07-29, no updates in 977 days), but the package is marked Production/Stable and carries no known vulnerabilities.
Requires Django 3.2 or later and a database migration to store password history.
License in practice
BSD permissive license means you can use, modify, and distribute this package freely in commercial and open-source projects with minimal restrictions.
Quickstart
pip install django-password-validators
# In settings.py:
INSTALLED_APPS = [
'django_password_validators',
'django_password_validators.password_history',
]
AUTH_PASSWORD_VALIDATORS = [
{
'NAME': 'django_password_validators.password_history.password_validation.UniquePasswordsValidator',
'OPTIONS': {'last_passwords': 5}
}
]
# Then: python manage.py migrate
Verify before relying
- Whether the package works with Django versions after 4.1 (latest documented example is 4.1).
- Current test coverage and whether dormant status reflects lack of maintenance or stable maturity.
Package facts
| License | BSD permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagedjango |
| Maintenance | Dormant 977 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 90,815 / month, #13,563 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableEnvironment :: Web EnvironmentFramework :: DjangoIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Security |
Evidence: django_password_validators-1.7.3-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “django password validation”
- django-password-validatorsProvides additional password validators for Django that enforce…
- pwned-passwords-djangoIntegrates password breach checking from the Pwned Passwords database…
- django-zxcvbn-password-validatorA Django password validator that uses pattern matching and dictionary…
Give your agent the search over MCP, or paste the wish link into any chat.
More Security packages
Provides Python bindings to the FreeDesktop.org Secret Service API for securely storing and retrieving passwords and secrets through GNOME Keyring, KWallet, or KeePassXC.
MSAL for Python handles OAuth2 and OpenID Connect authentication with Microsoft identity services, managing token acquisition, caching, and refresh for applications integrating with Microsoft Entra ID, Microsoft Accounts, and Azure AD B2C.
joserfc implements JOSE standards (JWS, JWE, JWK, JWT, and related RFCs) for signing, encrypting, and managing JSON-based cryptographic tokens in Python.
Authlib provides a complete implementation of OAuth 1.0, OAuth 2.0, and OpenID Connect 1.0 for building both authentication clients and servers, with built-in support for JWS, JWK, JWA, and JWT standards.
Provides low-level CFFI bindings to the official Argon2 password hashing algorithm for use by libraries and applications that need direct access to Argon2 without higher-level abstractions.
ADAL for Python authenticates applications with Azure Active Directory to obtain tokens for accessing Azure AD-protected resources.
Install only if maintaining existing code that already depends on it, and plan a migration.
See also pwned-passwords-django · validators · django-zxcvbn-password-validator · password-strength · validator-collection · dj-rest-auth · django-cleanup · django-decorator-include · django-localflavor · django-csp