create an .htpasswd file like this:

C:\Apache\bin>htpasswd -c c:\.htpasswd USERNAME
Automatically using MD5 format.
New password: ******
Re-type new password: ******
Adding password for user USERNAME

If look in the .htpasswd you see that the pass is different thatn if you
use crypt or md5 to encrypt the same password.

--

SWAMP (Secure Windows Apache Mysql Php) is a fully configured,
installation of Apache (mod_ssl), PHP, MySQL, OpenSSL and related
administrative tools for Windows(TM) NT/2000/XP

http://swamp.sourceforge.net
http://sourceforge.net/projects/swamp/

"Dominik Wittenbeck" <[EMAIL PROTECTED]> wrote: 
> 
> I am currently trying to create a .htpasswd file for apache using PHP and
> the crypt() on Win2k. I can generate the file alright but it does not work.
> I have looked into some classes as well and all use the crypt() function.
> The reason for this not working is probably the algorithm used because the
> passwords within a .htpasswd created with apache looks a hell lot different
> using something like
> 
> $apr1$rB2.....$8iUWArWEsTQ2553kjk22NS1 (not a real password by the way)
> 
> anyone having experience with that? Something up because I use windows?
> 
> Dominik Wittenbeck
> ----------------------------------------------------------------
>   E-Mail:     [EMAIL PROTECTED]
>   URL:        http://www.developaz.com
> 
> 
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to