Home  >  Article  >  Backend Development  >  PHP implements MD5 encryption 16 bits (not the default 32 bits)_PHP tutorial

PHP implements MD5 encryption 16 bits (not the default 32 bits)_PHP tutorial

WBOY
WBOYOriginal
2016-07-21 14:58:57868browse

Use the substr function to intercept:

Copy the code The code is as follows:

substr(md5( "admin"),8,16); // 16-bit MD5 encryption
md5("admin"); // 32-bit MD5 encryption

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/328182.htmlTechArticleUse the substr function to intercept: Copy the code as follows: substr(md5("admin"),8,16); // 16-bit MD5 encryption md5("admin"); // 32-bit MD5 encryption...
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