Welcome 微信登录

首页 / 网页编程 / PHP / php实现MD5加密16位(不要默认的32位)

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