1. Dumbwaiter Design
  2. django-bcrypt


django-bcrypt /

Filename Size Date modified Message
132 B
Add "docs/build" to .hgignore.
144 B
Added tag v0.9.2 for changeset 8e6510cf2c14
1.1 KB
Convert docs to reStructuredText and include them in the sdist.
35 B
Convert docs to reStructuredText and include them in the sdist.
2.2 KB
Doc links.
632 B
Fix bug with is_enabled() returning None when not under a test.


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.


You can configure how django-bcrypt behaves with a few settings in your settings.py file.


Enables bcrypt hashing when User.set_password() is called.

Default: True


Enables bcrypt hashing when running inside Django TestCases.

Default: False (to speed up user creation)


Number of rounds to use for bcrypt hashing. Increase this as computers get faster.

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.

Default: 12


Enables bcrypt password migration on a check_password() call.

The hash is also migrated when BCRYPT_ROUNDS changes.

Default: False


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

It also depends on the py-bcrypt library.