hash problem.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I´ve got the setting in my /etc/login.defs file as bellow:

# Use MD5 or DES to encrypt password? Red Hat use MD5 by default.
MD5_CRYPT_ENAB no

ENCRYPT_METHOD SHA512

So, when I try to get this:

echo hash("sha512", $_POST["password"]);

It does not match the password the user´s got in /etc/shadow file.

Anyone knows why?

-- 
João Cândido de Souza Neto 



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



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux