fadedbee
fadedbee

Reputation: 44739

Quicker, non-secure, replacement needed for MD5/SHA1 hash functions

I need a non-crypto-secure hash function which produces at least 16 bytes of output.

I'm currently using MD5, but it's too slow, by a factor of around 5 times.

Adler32, CRC32, etc. do not produce the required amount of output.

Is there a way of turning checksums into hash functions, producing the required 16 bytes+ of output?

Upvotes: 1

Views: 304

Answers (1)

fadedbee
fadedbee

Reputation: 44739

I initially used 4 different 32 bit checksums and concatenated their output to make 16 bytes.

I then solved the problem properly: Optimise updating MD5/SHA1 with streams of zeros

Upvotes: 1

Related Questions