{"library":"pwned-passwords-django","title":"Pwned Passwords Django","description":"A Django library to check passwords against the Have I Been Pwned Pwned Passwords database, either via k-Anonymity API or a local download of the hashed passwords. Version 5.2.0 requires Python >=3.9, compatible with Django 3.2+. It integrates seamlessly with Django's password validation framework and provides both online and offline modes.","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install pwned-passwords-django"],"cli":null},"imports":["from pwned_passwords_django.validators import pwned_password_validator","from pwned_passwords_django.validators import pwned_password_validator"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"# Add to INSTALLED_APPS:\nINSTALLED_APPS = [\n    ...\n    'pwned_passwords_django',\n]\n\n# Add to AUTH_PASSWORD_VALIDATORS:\nAUTH_PASSWORD_VALIDATORS = [\n    ...\n    {\n        'NAME': 'pwned_passwords_django.validators.pwned_password_validator',\n    },\n]\n\n# Optional: configure settings in settings.py\nPWNED_PASSWORDS = {\n    'API_ENABLED': True,  # or False to use local database\n}","lang":"python","description":"Basic setup: add app to INSTALLED_APPS, add the validator, and optionally configure API vs local mode.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}