![]() |
![]() |
![]() |
|||||
![]() |
![]() |
![]() |
![]() |
![]() |
|||
| Welcome
to Tech Support Forum home to more then 136,000 problems solved. Issues
have included: Spyware, Malware, Virus Issues, Windows, Microsoft,
Linux, Networking, Security, Hardware, and Gaming Getting your
problem solved is as easy as: 1. Registering for a free account 2. Asking your question 3. Receiving an answer Registered members: * See fewer ads. * And much more..
|
| Want to know how to post a question? click here | Having problems with spyware and pop-ups? First Steps |
|
|||||||
| Programming A discussion forum for programs and programming used in tech-related businesses. |
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) |
|
Registered User
Join Date: Apr 2008
Posts: 13
OS: win xp
|
MD5 of a file is different on different computers?
Is this possible? It is the same file.
I have a few .rar files, and I want to distribute it online. I want to check that the MD5 is indeed the same on every computer (as people claim), so that I can provide it on my website as a means of checking the integrity of the files. Each file is very large (1GB). I have copied them to 5 different computers, and 2 of the computers are giving a different MD5 result to the other 3 computers. On Macbok Pro, OS X: MD5 (test.part1.rar) = 84cc656767f52708a7d491e80b9153a7 MD5 (test.part2.rar) = ecc5f0f3939112d533321679329d35c0 On PC Laptop, Windows XP: test.part1.rar = 84CC656767F52708A7D491E80B9153A7 test.part2.rar = ECC5F0F3939112D533321679329D35C0 On Mac Pro, OS X: test.part1.rar = 84CC656767F52708A7D491E80B9153A7 test.part2.rar = ECC5F0F3939112D533321679329D35C0 ---- Desktop PC, Windows XP: test.part1.rar = 527C6E130835387DA8DE7F343CC5CE54 test.part2.rar = A38857B949E390CEC7AE096B7B7B42CA On 2nd Laptop, OS X: test.part1.rar = 527C6E130835387DA8DE7F343CC5CE54 test.part2.rar = A38857B949E390CEC7AE096B7B7B42CA ---- So, why would the MD5 be different? I thought it was meant to be the same on all machines? I've copied the files many many times, via network, and DVD, to check that it is copied correctly. Indeed it is the same result every time. It does unrar correctly without errors on all machines. Indeed the above MD5 results are consistent and remain unchanged. Can anyone shed any light on this? Is the MD5 check not quite what we believe it to be? Last edited by matt99b; 06-17-2009 at 04:50 AM. |
|
|
|
| Important Information |
|
Join the #1 Tech Support Forum Today - It's Totally Free!
TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free. Join TechSupportforum.com Today - Click Here |
|
|
#2 (permalink) |
|
Design Team Member
Join Date: Jul 2007
Location: Coventry, UK
Posts: 1,880
OS: Vista, various linux distros
|
Re: MD5 of a file is different on different computers?
Did you modify the file at some point whilst transferrig the files? because it's simply not possible for an MD5 hash to be different for identical files. What is it you're using to generate the MD5 hash? and have you tried generating the hash directly from the DVD? (basically because some modding of the file could be done at some point from A to B)...
Cheers, Jamey |
|
|
|
|
|
#3 (permalink) |
|
Registered User
Join Date: Apr 2008
Posts: 13
OS: win xp
|
Re: MD5 of a file is different on different computers?
Hi Jamey,
No modding of the file - I have tried downloading from my website and DVD and CD.. several times.. the results are consistently the same. If there was a random mod in place, it would be different every time. If there was a consistent mod in place, that .rar files wouldn't open without errors. Could this be something to do with 64-bit vs. 32bit operating systems or processors? Would the split .rar files open if there was any modding? it seems unlikely as there is no error correction included with the rar files. Am not a basic user, so things like caching are not an issue.. stumped by this one. Advice appreciated. Last edited by matt99b; 06-18-2009 at 04:51 PM. |
|
|
|
|
|
#4 (permalink) |
|
Design Team Member
Join Date: Jul 2007
Location: Coventry, UK
Posts: 1,880
OS: Vista, various linux distros
|
Re: MD5 of a file is different on different computers?
Okay, different approaches are the way to go then:
- If it was split then it would have (probably) modified the file's headers, and depending on what joining function/software you're using it could change it in different ways. - What file systems are the OSes using(FAT/NTFS) that could also modify the header(modding the file)... Best thing to try to start with is check the times and dates/other info in the "properties" of the files(right click->props, or similar)... If they differ then that could be the problem. But it shouldn't be the OSes themselves (64/32bit) that change the md5... unless that's correspondand with the ones that were different....(actually that's something to check, if the 64 bit vs 32 bit are different but both the same then that's probably it, but i don't [as of yet] know the technical reason for this). Cheers, Jamey Last edited by jamiemac2005; 06-18-2009 at 04:54 PM. |
|
|
|
|
|
#5 (permalink) | ||||
|
Registered User
Join Date: Apr 2008
Posts: 13
OS: win xp
|
Re: MD5 of a file is different on different computers?
Quote:
Quote:
Quote:
Quote:
Thanks for trying to help.. I'm surprised by the lack of replies on this thread, I would have thought that discovering that a tried and tested proven technology is in fact seriously flawed, might be interesting to a lot of people! |
||||
|
|
|
|
|
#6 (permalink) |
|
Design Team Member
Join Date: Jul 2007
Location: Coventry, UK
Posts: 1,880
OS: Vista, various linux distros
|
Re: MD5 of a file is different on different computers?
Nope, MD5 isn't flawed(yet)... MD4 and other pre-decessors were flawed. But MD5 is just the algorithm used to create the hash...
Apparently 64-bit checksums do calculate differently to 32-bit... The only thing to do is calculate both and distrobute them with the file. Cheers, Jamey |
|
|
|
|
|
#7 (permalink) |
|
Registered User
Join Date: Jun 2009
Posts: 1
OS: Vista
|
Re: MD5 of a file is different on different computers?
This is a problem which even I faced. Its not just different on different computers, it seems like its implementation in different scripting languages (in my case javascript and perl MD5) also provide different outputs. Wierd eh?
Maybe a problem with the tool you are using to compute the checksum? |
|
|
|
![]() |
| Thread Tools | |
|
|