加入收藏 | 设为首页 | 会员中心 | 我要投稿 开发网_郴州站长网 (http://www.0735zz.com/)- 云通信、区块链、物联设备、云计算、站长网!
当前位置: 首页 > 站长学院 > PHP教程 > 正文

PHP实现的各类hash算法长度及性能测试实例

发布时间:2021-03-11 06:43:10 所属栏目:PHP教程 来源:网络整理
导读:本篇章节讲解PHP实现的各类hash算法长度及性能测试。分享给大家供大家参考,具体如下: Hash结果如下 运行结果: 性能测试如下: 运行结果: 1.4528379546356 [fnv164] => 1.4598390410767 [fnv1a64] => 1.4685498960724 [fnv132] => 1.4695508840027 [crc

本篇章节讲解PHP实现的各类hash算法长度及性能测试。分享给大家供大家参考,具体如下:

Hash结果如下

运行结果:

性能测试如下:

运行结果:

1.4528379546356 [fnv164] => 1.4598390410767 [fnv1a64] => 1.4685498960724 [fnv132] => 1.4695508840027 [crc32b] => 1.480463955719 [adler32] => 1.481206043457 [joaat] => 1.4851269485474 [crc32] => 1.508364085907 [md4] => 1.6973789288788 [md5] => 1.7637529927979 [sha1] => 1.932477017334 [tiger128,3] => 1.9683119142761 [tiger160,3] => 1.9759550503387 [ripemd128] => 2.0003409449921 [tiger192,3] => 2.0107291056519 [tiger128,4] => 2.0609339611664 [tiger160,4] => 2.0614830404358 [ripemd256] => 2.1055679496613 [tiger192,4] => 2.1089930283813 [ripemd320] => 2.3564790057831 [ripemd160] => 2.3820580299072 [sha256] => 2.3944439311981 [sha224] => 2.4205659084473 [haval128,3] => 2.5319820201874 [haval224,3] => 2.5319839861755 [haval160,3] => 2.5347460784149 [haval192,3] => 2.5500600071869 [haval256,3] => 2.580485933548 [sha384] => 2.6736448852386 [sha512] => 2.721533025589 [haval224,4] => 2.9019400155029 [haval128,4] => 2.9155439011078 [haval256,4] => 2.9168769813385 [haval160,4] => 2.9341630749512 [haval192,4] => 2.9478991126251 [haval192,5] => 3.1933639251862 [haval256,5] => 3.1942859609985 [haval160,5] => 3.1946619862823 [whirlpool] => 3.1954451004639 [haval128,5] => 3.2122300287323 [haval224,5] => 3.295264964798 [gost] => 4.6756690344391 [gost-crypto] => 4.6819899302826 [snefru] => 6.5784390528107 [snefru256] => 6.6484970919647 [md2] => 11.291653894501 )

PS:这里再为大家提供2款hash相关在线工具供大家参考使用:

在线散列/哈希算法加密工具:

在线MD5/hash/SHA-1/SHA-2/SHA-256/SHA-512/SHA-3/RIPEMD-160加密工具:

更多关于PHP相关内容感兴趣的读者可查看本站专题:《》、《》、《》、《》、《》、《》、《》及《》

希望本文所述对大家PHP程序设计有所帮助。

(编辑:开发网_郴州站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    热点阅读