Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Commit

Permalink
Fixed #21362 -- Restored Python 2.5 compatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
apollo13 committed Nov 2, 2013
1 parent b149d1f commit 848a759
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions django/utils/crypto.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,9 @@ def pbkdf2(password, salt, iterations, dklen=0, digest=None):
inner, outer = digest(), digest()
if len(password) > inner.block_size:
password = digest(password).digest()
password += b'\x00' * (inner.block_size - len(password))
inner.update(password.translate(hmac.trans_36))
outer.update(password.translate(hmac.trans_5C))
password += '\x00' * (inner.block_size - len(password))
inner.update(password.translate(_trans_36))
outer.update(password.translate(_trans_5c))

def F(i):
def U():
Expand Down

0 comments on commit 848a759

Please sign in to comment.