when I run this on my command line:
Code:
echo apple | md5sum
I get:
Code:
30c6677b833454ad2df762d3c98d2409
whereas the result of this PHP-Code
Code:
$md5test=md5('apple');
echo $md5test;
is
Code:
1f3870be274f6c49b3e31a0c6728957f
I deliberately took the example of the manual and verified it on my apache-server, the result is the same. Then again, I cross-checked the output of md5sum with a md5-generator on the internet, and got
that checksum again. Both functions, the php-function and the command-line program use RFC 1321.
Why are there two outputs for the very same string?
Any hint would be nice!