I have a database with thousands of md5 encrypted passwords and I need to migrate to sha256. What is the safest way to do this by keeping the old passwords with md5 access and the new one with sha256 encryption? Thanks.
Share
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.
Alternatively to creating a new column for the sha256 you can use the existing column for both. Because sha256 hashes are much longer than md5 hashes you can detect the hash algorithm by looking at the length of the hash.