Skip to main content

No project description provided

Project description

django-hibp

This package provides a password validator for Django that validates passwords against HIBP.

Getting started

Install using pip:

pip install django-hibp

Add HIBPPasswordValidator to your AUTH_PASSWORD_VALIDATORS setting:

AUTH_PASSWORD_VALIDATORS = [
    ...
    {
        'NAME': 'django_hibp.HIBPPasswordValidator',
        'OPTIONS': {
            'fail_on_error': False,
        }
    },
]

Since this plugin relies on an external API, this introduces a new point of failure. If the Pwned Passwords API is inaccessible, the check will fail. To avoid breaking your application in this case, set fail_on_error to False.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

django_hibp-0.2-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file django_hibp-0.2-py3-none-any.whl.

File metadata

  • Download URL: django_hibp-0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.2

File hashes

Hashes for django_hibp-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 098dae5caa1a0d51986343e87b1bbb01e08809e17d11ca7f0ceb3a79acca3825
MD5 35aacf739c379f1ca8c73e51267d7575
BLAKE2b-256 f207e63db8af01dacd87798f381f20de8d9f2263ba9657086629bbe61a85b251

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page