Re: [Zope-dev] zope.password

2009-09-23 Thread Daniel Holth
You are right, it is an accident that unicode can be encoded to base64. It just annoys me that the Python 2.6 error for this is "TypeError: character mapping must return integer, None or unicode". In that case, how would you feel about updating PlainTextPasswordManager instead? It is not like the

Re: [Zope-dev] zope.password

2009-09-23 Thread Daniel Holth
This works: unicode(u"foobar".encode('base64')).decode('base64') On Wed, Sep 23, 2009 at 4:07 AM, Wichert Akkerman wrote: > On 2009-9-22 18:59, Daniel Holth wrote: >> >> At least on Python 2.6, SSHAPasswordManager().checkPassword(hash, >> p

[Zope-dev] zope.password

2009-09-22 Thread Daniel Holth
that parses hashes in the form of {scheme}hash and uses getUtility(IPasswordManager, SCHEME) to check a variety of schemes. Thanks, Daniel Holth ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross