https://github.com/psypherpunk/django-pwny
Have I Been Pwned? password validator for Django.
https://github.com/psypherpunk/django-pwny
Last synced: about 1 year ago
JSON representation
Have I Been Pwned? password validator for Django.
- Host: GitHub
- URL: https://github.com/psypherpunk/django-pwny
- Owner: PsypherPunk
- License: apache-2.0
- Created: 2019-02-22T12:14:05.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2025-04-04T12:57:59.000Z (about 1 year ago)
- Last Synced: 2025-04-11T05:51:56.766Z (about 1 year ago)
- Language: Python
- Size: 266 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: docs/contributing.rst
- License: LICENSE
Awesome Lists containing this project
README
# `django-pwny`
*Have I Been Pwned?* password validator. Inspired by a
[blog post](https://www.thedatashed.co.uk/2019/02/07/django-pwny/) on
the subject.
## Quickstart
Install `django-pwny`:
```sh
pip install django-pwny
```
Add it to your `AUTH_PASSWORD_VALIDATORS`:
``` python
AUTH_PASSWORD_VALIDATORS = [
...
"pwny.validation.HaveIBeenPwnedValidator",
...
]
```
## Running Tests
`django-pwny` makes use of
[`pytest-dev/pytest-django`](https://github.com/pytest-dev/pytest-django) to
run tests via [`pytest`](https://docs.pytest.org/).
Assuming dependencies are installed, simply run:
```sh
pytest
```
## Credits
Tools used in rendering this package:
- [Cookiecutter](https://github.com/audreyr/cookiecutter)
- [cookiecutter-djangopackage](https://github.com/pydanny/cookiecutter-djangopackage)