There was a hash algorithm that I came across some time ago that was quite useful for small files. From memory the algorithm itself was very simple. It involved adding the hash with the next byte and multiplying by some fixed number (33 maybe?) then there was a bit shift at the end.
The pseudocode looked something like the following:
for each byte:
x = nextbyte * 33
hash += x
hash <<= 4
Does anyone know the name of this hash algorithm?
It looks like the java hash code algorithm:
But it in case this is not true try scrolling through the list of hash functions