Home > Backend Development > PHP Tutorial > php实现MD5加密16位(不要默认的32位)_PHP

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

WBOY
Release: 2016-06-01 12:03:37
Original
881 people have browsed it

使用substr函数截取:
复制代码 代码如下:
substr(md5("admin"),8,16); // 16位MD5加密
md5("admin"); // 32位MD5加密 

Related labels:
php
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