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:
* Get free support
* Communicate privately with other members (PM).
* Removal of this message
* 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
Go Back   Tech Support Forum > The IT Pro > Programming
User Name
Password
Site Map Register Donate Rules Blogs Mark Forums Read


Programming A discussion forum for programs and programming used in tech-related businesses.

Reply
 
LinkBack Thread Tools
Old 06-17-2009, 04:46 AM   #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.
matt99b is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
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

Old 06-17-2009, 03:34 PM   #2 (permalink)
Design Team Member
 
jamiemac2005's Avatar
 
Join Date: Jul 2007
Location: Coventry, UK
Posts: 1,853
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
__________________

Myspace
jamiemac2005 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 06-18-2009, 04:46 PM   #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.
matt99b is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 06-18-2009, 04:53 PM   #4 (permalink)
Design Team Member
 
jamiemac2005's Avatar
 
Join Date: Jul 2007
Location: Coventry, UK
Posts: 1,853
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
__________________

Myspace

Last edited by jamiemac2005; 06-18-2009 at 04:54 PM.
jamiemac2005 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 06-23-2009, 05:23 AM   #5 (permalink)
Registered User
 
Join Date: Apr 2008
Posts: 13
OS: win xp


Re: MD5 of a file is different on different computers?

Quote:
Originally Posted by jamiemac2005 View Post
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.
No joining function/software was used before checking the MD5, so it rules that out.
Quote:
Originally Posted by jamiemac2005 View Post
- What file systems are the OSes using(FAT/NTFS) that could also modify the header(modding the file)...
Some computers are running NTFS, some are Mac OS Extended

Quote:
Originally Posted by jamiemac2005 View Post
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.
All the dates/times are showing as the same.

Quote:
Originally Posted by jamiemac2005 View Post
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).
How do I check 32bit vs 64bit?

Quote:
Originally Posted by jamiemac2005 View Post
Cheers,
Jamey
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!
matt99b is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 06-23-2009, 07:46 AM   #6 (permalink)
Design Team Member
 
jamiemac2005's Avatar
 
Join Date: Jul 2007
Location: Coventry, UK
Posts: 1,853
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
__________________

Myspace
jamiemac2005 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 07-01-2009, 12:18 AM   #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?
sudarshanmj is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -7. The time now is 08:12 PM.



Copyright 2001 - 2009, Tech Support Forum
Home Tips Plus | Outdoor Basecamp | Automotive Support Forum

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85