How to generate 16-bit MD5 hash by PHP

The value of

PHP md5 defaults to 32 bits. How to get 16 bits. On the Internet, there are a lot of characters that are intercepted by strings with 16 bits. Is this a reliable way?

Mar.16,2021
The second parameter of the

md5 function is set to TRUE,. The result will be returned in the original binary format of 16 bytes, isn't it?


has modified the answer of @ xialeistudio Fatty friend


16-bit MD5 is intercepted through 32-bit. Usually intercept the middle 16 bits

  https://md5jiami.51240.com/
from the encrypted results, 16-bit and 32-bit 8-24 bits are the same
definitely not 32-bit reliable

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b2b060-2ba46.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b2b060-2ba46.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?