Home >Backend Development >PHP Problem >What is the situation when php md5 is different?
php md5 is different means that md5 is different from the value of md5 in the mysql database. The solution is to check whether the variables in the "md5()" function of mysql are correct and make corresponding modifications. .
php md5 is different from the value of md5 in mysql database
Using mysql database to insert a string is MD5( "admin"), the result obtained is: de763cd3b4eeea46d7dec0d499a1f44f
But when I use md5("admin") in php, the result obtained is indeed: 21232f297a57a5a743894a0e4a801fc3
Why does this problem occur?
# This MD5 ('Admin') result of 21232F297A57A57A57A7438A0E4A801FC3
## PHP The result is 21232F297A57a7438a801FC3
## This
Please check you mysql MD5 () Are the variables in the function correct? There are no errors that are easy to make. For example, the MD5 result of "admin" is de763cd3b4eeea46d7dec0d499a1f44f
The above is the detailed content of What is the situation when php md5 is different?. For more information, please follow other related articles on the PHP Chinese website!