PHP .htaccess

Ok... I was fairly sure that this was the code to get passwords to be encrypted into the DES standard so that they could be authorized by .htaccess and .htpasswds for Basic Authentication

PHP Code:
$salt substr$pass ); 
$enc_pw crypt$pass$salt ); 
Take the first 2 charecters of the password as the salt to send through the PHP crypt proccess.... but, I'm not getting the right encrypted string...

Please tell me I'm doing this wrong so I don't think I'm completley crazy....

 

 

 

 

Top