My web application uses the PHP crypt()
function for password hashing. I wanted to use SHA256 algorithm, so I generated the users' salt strings accordingly. The problem is that i didn't realize that SHA256 was not supported on the server I was using (CRYPT_SHA_256
). I've just moved my application to another server which supports SHA256 and basically none of my users can log in because their password strings and salt strings generate different hashes compared to the hashes generated on the previous server.
What do you think the best solution would be without asking every single user to change their passwords?
Thank you in advance, I appreciate any useful ideas.