Click here to Skip to main content
15,887,596 members
Please Sign up or sign in to vote.
2.60/5 (3 votes)
See more:
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.
Posted

In this CodeProject article you may find: "Hash Functions: An Empirical Comparison"[^].
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 14-Mar-14 16:52pm    
5ed.
—SA
CPallini 14-Mar-14 16:57pm    
Thank you.
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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900