2 ms·
>MD5 is still perfectly fine for protecting against accidental corruption in storage or transit So would some form of CRC. It's possible to create colliding fi
by charcircuit 5y ago
>MD5 is still perfectly fine for protecting against accidental corruption in storage or transit
So would some form of CRC. It's possible to create colliding files with MD5 so you lose the protection of knowing if a file you are given hash has a near 100% probability of being the correct file.
The length extension problems with SHA256 are not relevant to this use case.
Edit: Since there is no practical second preimage attack on MD5 this it's less of a big deal in this use case, but I think it's simpler to just avoid relying on MD5 to prove that 2 flies are likely the same in general.
- dspillett 5y ago> So would some form of CRC. Less tooling directly supports them though. The Windows Explorer extension I use does, but others just support MD5 and maybe some SHA variants, similarly for download management browser extensions. And for this use people are just familiar with MD5. You'd be surprised how many in tech fields who don't touch encryption much, are relatively unaware of changes from the last decade or two. Even long-time command-line dwellers might have to lookup how to check a CRC despite cksum being part of the same package as md5sum/sha1sum/et.al. and installed by default practically everywhere unix-a-like just because they've always used stronger hashes for that. > The length extension problems with SHA256 are not relevant to this use case. No, but “by default” I meant in the general case. Being in the habit of using a choice that is better generally and no worse specifically, is safer than using good enough in one place and hoping you remember to vary when there are different concerns. My memory is somewhat random, so I prefer to err on the side of caution when trying to develop habits! > but I think it's simpler to just avoid relying on MD5 to prove that 2 flies are likely the same in general Agreed, and I do. Though I'd not go as far as to chastise those using md5 where it is still sufficient.