-
Website
http://creeva.com/ -
Original page
http://creeva.com/2008/01/24/why-i-hate-md5-or-how-i-learned-to-start-worrying-and-hate-the-misconceptions/ -
Subscribe
All Comments -
Community
-
Top Commenters
-
thejamesf
5 comments · 1 points
-
alexfxtrader
7 comments · 1 points
-
creeva
356 comments · 1 points
-
michelle23
2 comments · 1 points
-
shokk
2 comments · 4 points
-
-
Popular Threads
-
A Series of Tubes — Does It Ever Get Not Funny?
2 weeks ago · 1 comment
-
Father and Son
2 weeks ago · 1 comment
-
A Series of Tubes — Does It Ever Get Not Funny?
so the better title would be "why i hate the practice of only using file-contents as input for md5 hashes and not taking the filename itself into account"
But your problem is that you fail to know the goal of the method you use: it's for detecting changes in the files (or, actually, the falsification of the data) and not to have a hash unique to the (actually any random) file. Downloaders aren't intersted whether the file is called "kernel-latest.tar.bz2" or "linux-2.6.31rc2.tar.bz2" as long as it's the same.
Actual security tools (like tripwire, integrit, etc) use file metadata hashing as well, so they detect not just data or filename change, but moving the file or having it changed by any unknown means (which changes, say, inode numbers).
Use tools what they're for. Don't try to screw in a screw with a sledgehammer. ;-)