Home > Backend Development > PHP Tutorial > 为啥POST过来的sha1加密字符串相等的判断不对呢

为啥POST过来的sha1加密字符串相等的判断不对呢

WBOY
Release: 2016-06-13 12:44:04
Original
1703 people have browsed it

为什么POST过来的sha1加密字符串相等的判断不对呢。
比如我表单post过来了sha1('1')这个加密后的字符串356a192b7913b04c54574d18c28d46e6395428ab。
然后我if($_POST['s']=='356a192b7913b04c54574d18c28d46e6395428ab')
为什么判断为false?
echo $_POST['s']也是356a192b7913b04c54574d18c28d46e6395428ab啊。。

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