I accidentally stopped hashing passwords before they were stored, so now my database has a mix of MD5 Passwords and unhashed passwords.
I want to loop through and hash the ones that are not MD5. Is it possible to check if a string is an MD5 hash?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can check using the following function:
The MD5 (Message-digest algorithm) Hash is typically expressed in text format as a 32 digit hexadecimal number.
This function checks that: