httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marty Bower <marty+apa...@mjhb.marina-del-rey.ca.us>
Subject Re: encrypting passwords
Date Thu, 18 Mar 1999 01:07:32 GMT
On Wed, Mar 17, 1999 at 04:54:25PM -0800, Charles Sliger wrote:

> On the server, how would I programatically encrypt the
> password?  htpasswd seems to require interaction.

The encryption is performed in the add_password() routine in
htpasswd.c, and relies on the crypt() function provided by the
operating system.

You could fairly easily customize htpasswd to do whatever it is
that you want to do, or graft the guts of add_password() into your
own creation.

-- 
Marty Bower  |  http://mjhb.marina-del-rey.ca.us  |  marty@mjhb.mdr.ca.us


Mime
View raw message