Chapter 20. mhash Functions

mhash is a library that provides a uniform interface to a large number of hash algorithms. These algorithms can be used to compute checksums, message digests, and other signatures. HMAC (Hashing for Message AuthentiCation) support implements the basics for message authentication, following RFC 2104. Later versions have added some key-generation algorithms, which use hash algorithms. mhash supports these algorithms: SHA1, GOST, HAVAL, MD5, RIPEMD160, TIGER, and CRC32 checksums. To add support for mhash in PHP, use the --with-mhash option when running the PHP configuration script. mhash is available from http://mhash.sourceforge.net/.

Get PHP Functions Essential Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.