Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

MD5 & Jar

807605Aug 1 2007 — edited Aug 2 2007
For some reason, I cannot seem to get a jar file to produce a consistance MD5 hash.

For example, my ant script will create "somefiles.jar". These files will then produce a MD5 hash. As expected, I can run MD5 on these files again, and I get the same result.

However, if I jar the exact same files again, and run the hash, I get a different result. This happens even if I force all the time stamps of the would-be internal files to be exactly the same.

My only guess is this has to do with the compression that is used for jar? Does anyone have a definitive answer for this?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 30 2007
Added on Aug 1 2007
8 comments
554 views