0

I am looking for a fast hash functions that I will use internally in my webapp. It does not need to be secure (e.g. I do not care if a possible attacker could find a message with the same hash).

It just needs to be fast and obviously collision resistant. For now it seems that MD5 would be the best approach (See the stackoverflow Thread Is calculating an MD5 hash less CPU intensive than SHA family functions?). Or has anyrone ran into a similiar issue and knows of a better hash algorithm?

Update

Sorry, I guess I should have looked more carefully: Looking for a fast hash-function

Community
  • 1
  • 1
Pascal Klein
  • 23,665
  • 24
  • 82
  • 119

1 Answers1

0

If your looking for hash function that's fast and low collision. Murmur3 hash would be the way to go. You can obtain a c++ copy here.

One of many php implementation here.

Review: http://www.strchr.com/hash_functions

JoeyAndres
  • 175
  • 1
  • 1
  • 4