Wednesday, August 18, 2004

#,#,# (Hash, hash, hash)

I have been playing with some hash functions of late, to do quickish file compares. (in win32 this time still using Delphi)

I do 3 hashes on a single file mapped into memory, CRC32, SHA1 and MD5 the hashes are done, in 3 threads operating on the same memory region. The nice thing is that application is only slightly slower than the slowest, hash function, but a helluva lot faster than doing all 3 sequentially... great I thought!..........

UntilI saw this on Slashdot, SHA0 and MD5 possible collisions found and this... I guess we will just have to wait and see if it true this will be a turn up for the books!