Jump to content

from md5 to hash sha512


fullyloaded

Recommended Posts

Hi,i was wondering if anyone had any idea how to change the md5 i have in my code to hash sha512? thanks.

if (md5($row["password"]) == $rememberCookiePassword){

Link to comment
Share on other sites

You can't change existing hashes into a new one.Your users would have to create new passwords (which could be the same as their old passwords), which would in turn generate new hashes for you to then check.As for how to do hashing with SHA-512, see crypt().

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...