MD5 & Jar
807605Aug 1 2007 — edited Aug 2 2007For 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?