I want to hash passwords in PHP then send the result to MySQL.
From time to time I might want to use the available hashing functions in PHPMyAdmin to update/reset passwords.
I used to use MD5
for this in the past. As its available in PHP, PHPMyAdmin and in MySQL.
However MD5 is no longer an option due to security concerns.
I looked into SHA1
and that is no longer an option either.
SHA2
does not seem to be available in PHPMyAdmin so that wont work for easy password resetting.
One version of PHPMyAdmin I saw used password_hash
but it wasn't available on another server so that is one issue. Another issue is it seems to produce a different output each time the function is run probably because of a random salt.
Is there a password hashing function that I can call from PHP, that will also be available in PHPMyAdmin and in MySQL as well?
Basically what should I replace MD5
with?