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!

Download files

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

Source Distribution

django-hashcash-0.2.1.tar.gz (8.4 kB view details)

Uploaded Source

File details

Details for the file django-hashcash-0.2.1.tar.gz.

File metadata

File hashes

Hashes for django-hashcash-0.2.1.tar.gz
Algorithm Hash digest
SHA256 f559ee3a648791315854667b19445850fc37e22669f040cee4893d67d12b7855
MD5 967aebf0a8b43d891f21267746ea3678
BLAKE2b-256 cddd006b066dd0636e2552942de4e34773f60f7eb70ba1c6192725e0e467e1cb

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.1 This release

1 file

0.2.0

1 file

0.1.0

1 file

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