Skip to main content

You should be using bcrypt.

django-bcrypt makes it easy to use bcrypt to hash passwords with Django.

Installation and Usage

Install the package with pip and Mercurial or git:

pip install -e hg+http://bitbucket.org/dwaiter/django-bcrypt#egg=django-bcrypt

# or ...

pip install -e git://github.com/dwaiter/django-bcrypt.git#egg=django-bcrypt

Add django_bcrypt to your INSTALLED_APPS.

That’s it.

Any new passwords set will be hashed with bcrypt. Old passwords will still work fine.

Configuration

You can set BCRYPT_ROUNDS in settings.py to change the number of rounds django-bcrypt uses. The default is 12.

You can change the number of rounds without breaking already-hashed passwords. New passwords will use the new number of rounds, and old ones will use the old number.

Acknowledgements

This is pretty much a packaged-up version of this blog post for easier use.

It also depends on the py-bcrypt library.

Download files

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

Source Distribution

django-bcrypt-0.9.2.tar.gz (4.0 kB view details)

Uploaded Source

File details

Details for the file django-bcrypt-0.9.2.tar.gz.

File metadata

  • Download URL: django-bcrypt-0.9.2.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for django-bcrypt-0.9.2.tar.gz
Algorithm Hash digest
SHA256 78998fc296232df1c4f61143b06460c0d1fff6f1e4e7a9e41aabad8a6fe3d751
MD5 3ea23874c4a82e1e21ad5043bb3eb1e3
BLAKE2b-256 2205c18aa9c41fc6efec2cc1662e0f6bb0fb81a7bbf52d14f392b661e28c9464

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.9.2 This release

1 file

0.9.1

1 file

0.9.0

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page