Looking for mod_auth_mysql for Windows or ?

Re: Looking for mod_auth_mysql for Windows or ?

by Howard Miller -
Number of replies: 0
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

I could only find a Perl script to do this...

http://www.awtrey.com/software/htpass.php

(of course, you can run Perl CGI scripts on Windows no problem)

Failing that, you could write your own! I believe that the PHP function to generate the password looks like:

function htpasswd($pass)
{ 
     $pass = crypt(trim($pass),base64_encode(CRYPT_STD_DES)); 
     return $pass; 
}