Modifying .htpasswd from Python?
M.-A. Lemburg
mal at lemburg.com
Thu Jan 25 05:42:06 EST 2001
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.
> Have tried to interact directly with the command, using the commands
> module, but since adding a user is a three step process, it didn't worked.
The crypt function is available in Python too: by means of
the crypt module. However, this module is optional and has
to be enabled in Modules/Setup to get compiled.
> Regards,
>
> Gustaf Liljegren
--
Marc-Andre Lemburg
______________________________________________________________________
Company: http://www.egenix.com/
Consulting: http://www.lemburg.com/
Python Pages: http://www.lemburg.com/python/
More information about the Python-list
mailing list