Modifying .htpasswd from Python?

Erno Kuusela erno-news at erno.iki.fi
Mon Jan 22 14:50:10 EST 2001


[i didn't get the start of the thread on my news server]

|| >Gustaf Liljegren wrote:
|| >>
|| >> This can be done easily in Perl, using the crypt() function. Now I
|| >> need a Python function doing exactly the same encryption as the
|| >> htpasswd command.

looks like you can also use md5 and sha1 passwords in an apache
password file. at least th htpassword program claims to have support
for them. i believe the python md5 module is there by default, it
might be wisest to use it.

disclaimer: i haven't tried it.

  -- erno



More information about the Python-list mailing list