有没有比SHA1更快的东西 [英] Is there anything faster than SHA1

查看:127
本文介绍了有没有比SHA1更快的东西的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我想知道是否有比SHA1更快的哈希算法。我会很清楚,我不是用它来保证安全。我只是在内部以低级别使用它进行相等性检查。到目前为止,我对SHA1很满意,但我想知道如果不解析谷歌我是否可以更快。



谢谢。

解决方案

在这篇 CodeProject 文章中,你可能会发现:哈希函数:经验比较 [ ^ ]。


Loads!



降低安全性几乎总是更快,但你必须自己做一些计时测试。



你对安全性不感兴趣,那么有很多方法可以散列东西:MD5,CRC,甚至XOR和SUM。



您想要使用的将取决于您的数据,以及您的哈希值有多大 - 更大意味着更少的错误火柴。看看这个: http://en.m.wikipedia.org/wiki/Hash_function#Hash_function_algorithms [ ^ ]列出其中一些。

Hi,

I was wondering if there is any hashing algorithm faster than SHA1. I'll be clear, I'M NOT USING THIS FOR SECURITY. I'm just using it for equality checks internally at a low-level. So far I'm happy with SHA1 but I want to see if I can go faster without dissecting Google.

Thanks.

解决方案

In this CodeProject article you may find: "Hash Functions: An Empirical Comparison"[^].


Loads!

Lower security is nearly always faster, but you will have to do some timing tests yourself.

Of you aren't interested in security, then there are loads of ways to hash stuff: MD5, CRC, even XOR and SUM.

What you want too use will depend on your data, and how big your hash has to be - bigger means fewer false matches. Have a look at this: http://en.m.wikipedia.org/wiki/Hash_function#Hash_function_algorithms[^] which lists some of them.


这篇关于有没有比SHA1更快的东西的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆