Hi, i'm test upgrading a 1.1 project to 1.4 and the password hasher is
raising an exception
while generating passwords (on several Django unit tests):
======================================================================
ERROR: test_pkbdf2 (django.contrib.auth.tests.hashers.TestUtilsHashPass)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/Users/zemanel/.virtualenvs/digpedia/lib/python2.5/site-packages/django/contrib/auth/tests/hashers.py",
line 33, in test_pkbdf2
encoded = make_password('letmein', 'seasalt', 'pbkdf2_sha256')
File
"/Users/zemanel/.virtualenvs/digpedia/lib/python2.5/site-packages/django/contrib/auth/hashers.py",
line 69, in make_password
return hasher.encode(password, salt)
File
"/Users/zemanel/.virtualenvs/digpedia/lib/python2.5/site-packages/django/contrib/auth/hashers.py",
line 204, in encode
hash = pbkdf2(password, salt, iterations, digest=self.digest)
File
"/Users/zemanel/.virtualenvs/digpedia/lib/python2.5/site-packages/django/utils/crypto.py",
line 143, in pbkdf2
raise OverflowError('dklen too big')
OverflowError: dklen too big
Any pointers on what could be causing it?
- Python 2.5.6 on OSX (Mountain Lion)
- $ pip freeze:
Django==1.4.1
PIL==1.1.7
distribute==0.6.27
wsgiref==0.1.2
ps.: Changing the PASSWORD_HASHERS to use 'SHA1PasswordHasher' (at least)
doesn't raise any issue.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/django-users/-/Ond_UbErAhYJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.