1.1 --- a/WebStack/Helpers/Auth.py Wed Nov 25 20:12:52 2009 +0100
1.2 +++ b/WebStack/Helpers/Auth.py Fri Nov 27 01:58:47 2009 +0100
1.3 @@ -205,7 +205,7 @@
1.4
1.5 # NOTE: Using "safe" encoding to deal with Unicode plaintext.
1.6
1.7 - return plaintext + ":" + md5.md5(plaintext.encode("iso-8859-1") + secret_key).hexdigest()
1.8 + return plaintext + ":" + md5.md5(plaintext.encode("utf-8") + secret_key).hexdigest()
1.9
1.10 # OpenID token verification.
1.11 # NOTE: Add SHA256 usage for associations.
1.12 @@ -223,7 +223,7 @@
1.13
1.14 # NOTE: Using "safe" encoding to deal with Unicode plaintext.
1.15
1.16 - hash = hmac.new(secret_key, plaintext.encode("iso-8859-1"), sha1)
1.17 + hash = hmac.new(secret_key, plaintext.encode("utf-8"), sha1)
1.18 return base64.standard_b64encode(hash.digest())
1.19
1.20 def check_openid_signature(fields, secret_key):