At 07:12 13/07/2004 -0700, kee nethery wrote:
I'm trying to duplicate an MD5 hash that gets created by this Perl code:
Perl output samples for various values of $the_string:
"just a test" => 25c674ceb1d7e145c01011d697c6e52f
When I run this with these strings I get the following values of theHexMd5Hash
"just a test" => 526c47ec1b7d1e540c01116d796c5ef2
Any ideas what I am doing wrong?
You're getting the two hex digits in each byte in the wrong order. Instead of put binaryDecode("h*", thisBinaryMd5Hash, theHexMd5Hash) into keeTemp you need put binaryDecode("H*", thisBinaryMd5Hash, theHexMd5Hash) into keeTemp (i.e. upper-case H* )
-- Alex.
--- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.719 / Virus Database: 475 - Release Date: 12/07/2004
_______________________________________________ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
