This question already has an answer here:
I tried to generate the MD5 sum (using md5sum) of a string, "hello". I tried out different methods as the md5sum tool in Linux, PHP's MD5() function as well as various online text to md5sum translators.
echo "hello" | md5sum
echo "hello" > file && md5sum file
Gave the result
b1946ac92492d2347c6235b4d2611184. However, PHP's md5() function and almost all online generators gave the output
What is the reason?