Ah, looks like this was the problem:

--- passwords.py        (revision 8159)
+++ passwords.py        (working copy)
@@ -97,7 +97,7 @@
     @staticmethod
     def check_response(challenge, response):
         # Get the salt from the challenge
-        challenge_bytes = decode(challenge)
+        challenge_bytes = decode(str(challenge))
         digest = challenge_bytes[:20]
         salt = challenge_bytes[20:]
         h = sha.new(response) 

Unicode or string ?  

MailmanWiki: DEV/Passwords done right/0001 (last edited 2007-02-21 23:17:16 by tkikuchi)