Added the ability to easily change the work factor in configurable hashing algorithms #406

Closed
wants to merge 7 commits into
from

Projects

None yet

3 participants

@jbuckner

This addition allows users to easily change the 'work factor' for bcrypt or 'iterations' for pbkdf2 by setting BCRYPT_ROUNDS and PBKDF2_ITERATIONS, respectively without having to create their own hasher.

There are checks in place to update the password with the new work factor as required.

Ticket: https://code.djangoproject.com/ticket/19043

@apollo13
Member

Where is the ticket for this?

Jason Buckner and others added some commits Sep 28, 2012
@jbuckner Jason Buckner Added is_current() method and call to contrib.auth.hashers and check_…
…password()

This addition allows users to easily change the work factor for bcrypt or
iterations for pbkdf2 by setting settings.BCRYPT_ROUNDS and settings.PBKDF2_ITERATIONS,
respectively without having to create their own hasher. There are checks in place
to update the password with the new work factor as required
53deeea
@jbuckner Jason Buckner added documentation for new password hasher settings 4841927
@jbuckner jbuckner added a missing skipUnless decorator and grouped the new tests 1c6e3ba
@jbuckner jbuckner adding a test to make sure is_current isn't called when hash has prop…
…er difficulty
999276c
@jbuckner jbuckner changing test case to use PBKDF2 instead of BCrypt so it will not be …
…skipped on systems without bcrypt
f9800ae
@jbuckner jbuckner fixed is_current() method on BCrypt and PBKDF2 PasswordHashers cd654a6
@jbuckner

Oh I hadn't created one. Here it is: https://code.djangoproject.com/ticket/19043

@aaugustin aaugustin closed this Jan 2, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment