Lurker News

Comments (485) 80 threads

Show all comments

Showing thread 40 of 80

mysterydip2 replies#
Forgive my ignorance, but it seems a solution to collision worries is to just use two hashing algorithms instead of one. We have two factor authentication for logins, why not the equivalent for hashed things?

Give me the sha1 and md5, rather than one or the other. Am I wrong in thinking even if one or both are broken individually, having both broken for the same data is an order of magnitude more complex?

pornel1 reply#
You're effectively creating a new hashing algorithm, which is twice as long and twice as slow, and is built using constructs known to be weak.
mysterydip#
Thanks, that makes sense.
Lanzaa#
The complexity of creating a collision for both hashes is pretty much just a sum of the two complexities. Since the sha1 collision is more difficult, that dominates the cost.

Once you have the sha1 collision, making the md5 collide should only take a few seconds of CPU time.