Follow Slashdot blog updates by subscribing to our blog RSS feed

 



Forgot your password?
typodupeerror
Check out the new SourceForge HTML5 internet speed test! No Flash necessary and runs on all devices. Also, Slashdot's Facebook page has a chat bot now. Message it for stories and more. ×

Comment Re:md5 != bit-for-bit integrity (Score 1) 422

md5 or other checksums do not guarantee bit-for-bit integrity. They are just a way to gain confidence about the integrity of files without resorting to a much slower bit-for-bit comparison.

This is wrong on so many levels... (ok, only two, but still...)

  • While there are known collision attacks against some hashing algorithms they are still considered the ideal way to ensure bit-for-bit file integrity. Try creating a file, create a md5 hash of it, change ONE BIT, create another md5 and see how they are not the same. The chances of having a file get corrupted and happen to retain the same md5 hash is nil.
  • Hashing a file is not faster than doing a bit-for-bit comparison. In order to create a hash of a file you must read every byte and apply a mathematical transform. You use hashing because a hash is vastly smaller than the file.

Slashdot Top Deals

Real computer scientists don't comment their code. The identifiers are so long they can't afford the disk space.

Working...