04-18-2011, 12:54 PM
Yours is similar to mine Infinity. Although where you have "{0:X1}", you should change it to "{0:X2}".
This will mean that bytes with a value of 0 to F won't be missing their leading zero.
An example...
Here I have used my program, and your program, to find the MD5 hash of an image file.
Your program gave: 8AE1AB2A5D297E76458417FA1DD0
Whereas mine (using "{0:X2}") gave: 08AE1AB2A5D2097E0764058417FA1DD0
By the way guys.. Can I host the next challenge?
This will mean that bytes with a value of 0 to F won't be missing their leading zero.
An example...
Here I have used my program, and your program, to find the MD5 hash of an image file.
Your program gave: 8AE1AB2A5D297E76458417FA1DD0
Whereas mine (using "{0:X2}") gave: 08AE1AB2A5D2097E0764058417FA1DD0
By the way guys.. Can I host the next challenge?