Hi all,

I'm trying md5 encryption on identity.

I inserted the passwords in my table using Zope-ExtendibleUserFolder
Now  I have my password like this:

'5fMbBqEU9vZB+EtWkloEqQ=='

tg doesn't recognize my password, I looked at saprovider.py lines:

129         if "md5"==algorithm:
130             self.encrypt_password = lambda pw: md5.new(pw).hexdigest()

and I see it generate my password as:

'662eaa47199461d01a623884080934ab'

I tried changing it as:

129         if "md5"==algorithm:
130             self.encrypt_password = lambda pw: md5.new(pw).digest()

and then the password became"

'\xe5\xf3\x1b\x06\xa1\x14\xf6\xf6A\xf8KV\x92Z\x04\xa9'


in my config/app.cfg there's the line:

identity.saprovider.encryption_algorithm="md5"

nut it doesn't work.
any ideas?

jo


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
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/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to