during my coding session/hour today, I thought about the HtPasswdChecker.
IMHO compatibility to apache's htpasswd files is a major point here so we
need to support Apache's md5 and sha1 algorithms.
There is a small, pure python module for Apache/md5 under a liberal
license. What about embedding this module in authority/lib or something
like that?
--
Felix Schwarz
Dipl.-Informatiker
Gubener Str. 38
10243 Berlin
Germany
www.schwarz.eu - software development and consulting
http://www.sabren.net/code/python/crypt/
The library seems to have no single license as the code (the ideas) comes from
different sources:
- FreeBSD (beer-ware license)
- Crypt::PasswdMD5 (Perl): same terms as Perl itself, GPL v2(+?), Artistic
License)
- Michal Wallace (public domain)
Quite a license mess, but I think these licenses do not place additional
license burdens on authority beyond the conditions of a 3-clause BSD.
fs
I don't think we should add a configuration option for that: Just parse the
htaccess file and use the appropriate algorithm (Apache's htpasswd tool can
create files with different hash algorithms). IMHO a configuration mechanism
is only needed if we had to add a new hash to the database.
fs