fullyloaded Posted July 25, 2012 Share Posted July 25, 2012 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 More sharing options...
boen_robot Posted July 25, 2012 Share Posted July 25, 2012 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now