Source Code:
(back to article)
<?php $inputString = "p4ssw0rd"; $salt = "agejkhgeuka"; $bytes = "8"; // bin2hex is used to convert binary // to hex string print_r(bin2hex(mhash_keygen_s2k(MHASH_MD5, $inputString, $salt, $bytes))); ?>
Result:
Report an issue