Very nice hack.... I found it very useful tu avoid editing the .htaccess file outside the server administration control panel... :nervous:
But I can't manage to make it working...
Actually, the function you use to hash password within the
.htaccess file,
PHP Code:
$passwortverschluesselt = crypt($HTTP_POST_VARS[passwort]);
doesn't match with my server's algorithm. So I always get 'wrong pw error'.
I'm on a Linux / Apache server...
I saw you don't use the salt key... Hwr as you can see on
http://www.php.net/crypt manual, to create an .htaccess compatible hash is suggested to use the first two chars of the pw as salt:
PHP Code:
//To generate a .htaccess-based authentication with DES,
// you have to use the first two characters of your password as salt.
$pass = "something";
$ht_pass = crypt($pass,substr($pass,0,2));
It doesn't work too on my server.
I create the htaccess file with an Apache cpanel and got an hash. When trying the crypt() algorithm with different salts, I can't manage to obtain the same hash... :cross-eyed:
Thanks