Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/koslib/django-pwned-password
Validate user passwords against haveibeenpwned.com database
https://github.com/koslib/django-pwned-password
django haveibeenpwned password-validation python
Last synced: about 1 month ago
JSON representation
Validate user passwords against haveibeenpwned.com database
- Host: GitHub
- URL: https://github.com/koslib/django-pwned-password
- Owner: koslib
- License: mit
- Created: 2018-03-04T17:43:03.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T00:55:12.000Z (about 2 years ago)
- Last Synced: 2023-03-21T12:39:43.606Z (almost 2 years ago)
- Topics: django, haveibeenpwned, password-validation, python
- Language: Python
- Size: 27.3 KB
- Stars: 6
- Watchers: 2
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# django-pwned-password
Validate user passwords against haveibeenpwned.com database.# Disclaimer
Think twice before using this package. Let your clients know you're testing their passwords against a 3rd-party service. Client trust
should be your #1 priority.
This projects only intends to highlight the need to ensure users select secure passwords, it is still a prototype and has not been tested in any production environment.# Scope
Restrict your Django project users from using a password that has been located even once in the haveibeenpwned.com database.
Doing this makes your project a more secure place for your clients.# Usage instructions
This package requires `requests` Python library. You can install it with
`pip install requests`, if it doesn't already exist in your project requirements.1. Clone the repo inside your project
2. In your app's settings file, locate the `AUTH_PASSWORD_VALIDATORS` and
append the `PwnedPasswordValidator` validator.```python
{
'NAME': 'django_pwned_validator.validators.PwnedPasswordValidator',
}
```You can check out the `example` project to get an idea of how it works.
# Credits
1. Reddit user `Poromenos` (https://www.reddit.com/r/django/comments/81z84w/validate_user_passwords_against_haveibeenpwnedcom/)# Contributing
Feel free to send any PRs or open issues with ideas for implementation.