﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
18157	Document that setting PASSWORD_HASHERS for tests can make them much faster	Carl Meyer	nobody	"As discussed in [https://groups.google.com/d/topic/django-developers/na0ejxpfxYA/discussion this thread], the new default PBKDF2 password hasher in Django 1.4 is significantly slower by design than the previous MD5 hasher (so that cracking of passwords in an exposed password database is more time-consuming). It seems that for some test suites that authenticate a lot of users, this can slow down the overall test suite run-time by as much as a factor of two.

The workaround is simple: you can override the `PASSWORD_HASHERS` setting to something like `PASSWORD_HASHERS = ['django.contrib.auth.hashers.MD5PasswordHasher']`, just for tests. Given the speed difference, this workaround is probably worth documenting in the testing docs (with the caveat that of course your test suite then won't reveal any bugs in your real `PASSWORD_HASHERS` setting)."	New feature	closed	Documentation	1.4	Normal	fixed		kmike84@… dan.fairs@… dev@…	Accepted	0	0	0	0	0	0
