Computing various Hash encryption of text, super comprehensive

Source: Internet
Author: User
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;}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.