Home > Backend Development > PHP Tutorial > 加密解密 - PHP如何生成16位数的MD5值?

加密解密 - PHP如何生成16位数的MD5值?

WBOY
Release: 2016-06-06 20:37:02
Original
1617 people have browsed it

PHP如何生成16位数的MD5值?

回复内容:

PHP如何生成16位数的MD5值?

参考PHP手册,md5方法中第二个参数设置为true,那么该方法会返回16位二进制格式的字符串。
另外,也可以截取md5中的字符串中的16位。

11111111000000000000000011111111

这就是中间的就是你要的16位值

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