加密扩展
PHP Manual

Mhash

User Contributed Notes

virgili dot garcia at gmail dot com 13-Apr-2016 12:11
You can use:

$s = 'foo';
echo pack('H*', hash('md4', $s));
Typo 10-Jun-2011 01:44
Note:

This extension is obsoleted by Hash.

I thought I would post this here as it took me a few minutes to find out.

加密扩展
PHP Manual