Skip to main content
django-hashcash
===============

This project implements http://hashcash.io into the normal Django login form.
This is useful in that it may thwart brute force attacks on the login form.


Installation
------------

### 1. Grab the app: `pip install django-hashcash`

### 2. Update settings.py

````
# settings.py

...

#
# Install django_hashcash into INSTALLED_APPS
#
INSTALLED_APPS += (
'django_hashcash',
)

...

#
# Add details you got from https://hashcash.io/
#
HASHCASHIO_PUBLIC_KEY = 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'
HASHCASHIO_PRIVATE_KEY = 'PRIVATE-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'
...
````

### 3. Update urls.py

````
# urls.py

...
from django_hashcash.forms import HashCashAuthenticationForm

...

admin.autodiscover()
admin.site.login_template = 'django_hashcash/login.html'
admin.site.login_form = HashCashAuthenticationForm
...
````

### Done!

Metadata

Release files for django-hashcash 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-hashcash 0.2.1
File Size Uploaded Provenance Actions
django-hashcash-0.2.1.tar.gz 8.4 kB Without provenance Details for django-hashcash-0.2.1.tar.gz

Release files / django-hashcash-0.2.1.tar.gz

Download URL django-hashcash-0.2.1.tar.gz
Size 8.4 kB
Tags Source
SHA-256 checksum
How to use checksums
f559ee3a648791315854667b19445850fc37e22669f040cee4893d67d12b7855
BLAKE2b-256 checksum
How to use checksums
cddd006b066dd0636e2552942de4e34773f60f7eb70ba1c6192725e0e467e1cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for django-hashcash 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page