What is the situation when php md5 is different?

藏色散人
Release: 2023-03-02 16:00:02
Original
3897 people have browsed it

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. .

What is the situation when php md5 is different?

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

###For more related knowledge, please visit ###PHP Chinese website###! #########

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!