mhash function
mhash
The mhash library provides an easy way to access strong hashes, such as MD5, SHA1, and other algorithms.
Mhash can be used to create checksums, message digests, message authentication codes, and more.
Syntax:
mhash(hash function, string input)
here,
hase function- Such as MHASH_MD5 ,MHASH_SHA1 etc.
input - String to find hash.
example:
<?php
$pass = “password”;
$hash = mhash (MHASH_MD5, $pass);
print “The hash is “.bin2hex ($hash);
?>
