Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tombiasz/django-hibpwned
Django password validator based on haveibeenpwned.com API
https://github.com/tombiasz/django-hibpwned
django haveibeenpawned password-validator
Last synced: 3 days ago
JSON representation
Django password validator based on haveibeenpwned.com API
- Host: GitHub
- URL: https://github.com/tombiasz/django-hibpwned
- Owner: tombiasz
- License: mit
- Archived: true
- Created: 2017-08-15T14:54:49.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-05-21T12:50:13.000Z (over 6 years ago)
- Last Synced: 2024-09-26T00:54:33.346Z (6 days ago)
- Topics: django, haveibeenpawned, password-validator
- Language: Python
- Size: 15.6 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# django-hibpwned
Django (>=1.9) password validator based on haveibeenpwned.com API## Requirements
```
Python 3.5+
Django 1.9+
requests 2+
```## Installation
```
pip install django-hibpwned
```## Usage
Add to settings.py:
```
AUTH_PASSWORD_VALIDATORS = [
(...)
{
'NAME': 'haveibeenpwned.validators.HaveIBeenPwnedValidator'
},
]
```
[reference](https://docs.djangoproject.com/en/1.9/topics/auth/passwords/#module-django.contrib.auth.password_validation)## Tests
To run the test suite create and activate a virtual environment. Then install some requirements and run the tests:
```
$ cd tests
$ pip install -e ..
$ ./runtests.py
```## Credits:
1. [Troy Hunt](https://www.troyhunt.com/)
2. [HaveIBeenPwned.com](https://haveibeenpwned.com/)
3. [Django](https://www.djangoproject.com/)
4. [Requests](http://docs.python-requests.org/en/master/)