Home >php教程 >php手册 >php实现MD5加密16位(不要默认的32位)

php实现MD5加密16位(不要默认的32位)

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-13 11:41:151088browse

使用substr函数截取:

复制代码 代码如下:


substr(md5("admin"),8,16); // 16位MD5加密
md5("admin"); // 32位MD5加密 

Statement:
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