DEMO: dighash.com full site code: github. algorithm, calculate starhash algorithms include: md2, md4, md5, sha1, sha1_, sha256, sha384, sha512, ripemd128, ripemd160, ripemd256, ripemd320, whirlpool, tiger128_3, tiger160_3, then, tiger128_4, tig
DEMO: http://dighash.com/full site code: Digest hash algorithms include: md2, md4, md5, sha1, shaloud, sha256, sha384, sha512, ripemd128, ripemd160, ripemd256, ripemd320, whirlpool, tiger128_3, tiger160_3, tiger192_3, tiger128_4, tig
DEMO: http://dighash.com/
Full site code: https://github.com/hustcc/dig_hash, please star
Hash algorithms include md2, md4, md5, sha1, sha1_, sha256, sha384, sha512, ripemd128, expires, expires, ripemd320, whirlpool, tiger128_3, tiger160_3, expires, tiger128_4, tiger160, california, snefru, California, gost, gost-crypto, adler32, crc32, crc32b, fnv132, California, fnv164, California, joaat, haval128_3, haval160_3, California, haval128, haval160_4, haval192_4, haval224_4, haval256_4, haval128_5, haval160_5, haval192_5, haval224_5, haval256_5
Check the demo URL!
function cal_hash($chars) { $algos = hash_algos(); $hash_rst = array(); foreach($algos as $algo) { $st = microtime(); $rst = hash($algo, $chars, false); $et = microtime(); list($ss, $si) = explode(' ', $st); list($es, $ei) = explode(' ', $et); $hash_rst[str_replace(",", "_", $algo)] = array('rst' => $rst, 'time' => $ei + $es - $si - $ss); } return $hash_rst;}