Solved

Very big deal with MD5 code

Posted on 2006-11-16
3
183 Views
Last Modified: 2010-04-30

Hi here is my big problem I am usig a program that compare the MD5 conversion of a file to know which version it is.

This is my problem in my source folder such as in the support folder of my installer package the MD5 of my file is the same 815d39c5281c7e429f11280068a0990a but when I install it in a computer and I try to get the MD5 of the exe file installed that should be the same of the source and package I get ee3df4f69d43ae50a6e3e80c432eb613 somebody knows why my MD5 changes from the project to the installation and more important somebody could tell me how to avoid this
0
Comment
Question by:pedro_arzac
3 Comments
 
LVL 10

Accepted Solution

by:
fostejo earned 500 total points
ID: 17959421
pedro_arzac,

Have you compared the files, with something like 'fc' at the command prompt for instance, to ensure that they are actually the same as you expect them to be in the support folder and after installation - if they're not, that would be one obvious explanation for the MD5 hash difference.

Is it possible the support folder version of the executable is compressed in some way? Is the file size the same?

Hope that helps..

0
 
LVL 19

Expert Comment

by:BrianGEFF719
ID: 17960807
It sounds like the original hash was generated using a compressed version of the file, compare to the hash of an installed file.

Brian
0
 
LVL 14

Expert Comment

by:Shiju Sasidharan
ID: 17964202
>>compare the MD5 conversion of a file
>>I try to get the MD5 of the exe file installed
>>MD5 changes from the project to the installation

1.  Are you trying take MD5 conversion of the exe file itself? or you are taking some of your project related settings file(say ini, dat file)?

>>when I install it in a computer
2.  Have u tested the same exe in your machine where your project is run?
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now