Do you know where your variables are? | |
PerlMonks |
Re: Exchanging md5s between Perl and Cby jettero (Monsignor) |
on Oct 28, 2010 at 18:58 UTC ( [id://868119]=note: print w/replies, xml ) | Need Help?? |
It seems to me it's your line endings... echo -n "a" | md5sum gives me the same thing as md5_hex("a"). "a\n" and "a" should not hash to the same thing.
It's also worth noting that Digest::MD5 really is C, as much as /usr/bin/md5sum is: MD5.xs.
In Section
Seekers of Perl Wisdom
|
|