in reply to MD 5 hash comparison/checker

print($md5a eq $md5b ? "same" : "different");

Replies are listed 'Best First'.
Re^2: MD 5 hash comparison/checker
by daggy (Novice) on May 07, 2010 at 00:16 UTC

    That worked perfectly, is it possible to display a snippet of the area that's different if the hash files aren't the same, or is this a waste of time?

    Also do you think it would be possible to display the MD6 hash as well as the MD5 hash?

      Question 1: "display a snippet?" Not without using an entirely different approach. MD5 is useful ONLY to compare the totality of the files; not of segments. If you really want to know what the differences are, use a tool built for that purpose, or write your own tool using line-by-line comparison (yes, you could do it para by para or use some other unit, but the concept is simple enough line-by-line.).

      Question 2: MD6? Why? What-on-earth-good would that do?

        Yup, did a little more research into it and decided to compare SHA1 hashes as opposed to MD5