On Wed, Jan 14, 2009 at 12:36 PM, Stuart <stuttle@xxxxxxxxx> wrote: > 2009/1/14 tedd <tedd@xxxxxxxxxxxx>: >> Let's say that I don't want to use the htpasswd command from the UNIX shell >> to generate an encoded password -- how else can I create an encoded password >> string that would work in a .htaccess file using basic authentication? > > AFAIK it's an MD5 hash, nothing more complicated than that. > > -Stuart > I think the last time I used basic authentication I just generated passwords with crypt(). At that time, the hashes certainly weren't MD5 (I think they were only 13 characters), but based on the manual that seems to be variable with the system anyway. Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php