Comment's on security
iam going to decide to SHA_512 with salt in my web project.
ut iam still in confiusion that there is some problem in it..
the hashing algorithm just hash the data before saving it in to the database something like ( 45454dsdsd54d4sd ).
how can the admin know about the user password?
how can he access to his personal data/profile?
if there is anothr way to secure the user input data in web please tell me...
do not use SHA-512. Do not use any home-made password scheme at all. I have no idea why PHP people love playing cryptographer so much (and failing again and again).
Instead, use an established and well-tested algorithm like bcrypt, which has actually proven itself to work. If you have an up-to-date PHP version, there's the password_compat library. If you're running with some old version, there's PHPass.
Writing a secure hash algorithm is an expert topic, so leave it to the people who actually know how to do it. SHA-512 with a salt is not secure. It doesn't suck as much as, say, plain MD5 hashes, but it's not even remotely suitable for protecting passwords against brute force attacks with current hardware.
Admins cannot retrieve the password. That's the whole point of password hashing. If they can, your system is badly broken. How admins can get access to a user account completely depends on the application.
Last edited by Jacques1; May 4th, 2013 at 03:10 PM.