LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   md5sum, checksum - quick questions (https://www.linuxquestions.org/questions/linux-newbie-8/md5sum-checksum-quick-questions-4175444427/)

mpc8250 01-06-2013 09:09 PM

md5sum, checksum - quick questions
 
Hi All

We are new. We aplogise ahead of time if you find it a poor question.

We have 2 binaries; one is from windows server 2003 and the other Linux OEL 5.

Should their md5sum and checksum values be the same even though both binaries were created using the same ant build ?

thanks

unSpawn 01-07-2013 07:24 AM

Quote:

Originally Posted by mpc8250 (Post 4864263)
We are new. We aplogise ahead of time if you find it a poor question.

Not at all. What's with the "we" BTW? Are you Borg? ;-p


Quote:

Originally Posted by mpc8250 (Post 4864263)
We have 2 binaries; one is from windows server 2003 and the other Linux OEL 5. Should their md5sum and checksum values be the same even though both binaries were created using the same ant build ?

You forgot to add the condition both archives having been being built using the same XML build file ;-p If all aspects are equal then I'd say the hash should be the same, after all Ant is just a sort of 'make', but if it isn't you can simply extract JAR or WAR file contents and compare hashes to find out which files are different and then use 'diff' on them to find out why. Shouldn't be hard to automate.


All times are GMT -5. The time now is 08:11 PM.