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

Menu