The following tcl code generate the different result than md5sum executable
#!/usr/bin/tclsh
package require md5
puts [md5::md5 -hex "test_string"]
the result is:
3474851A3410906697EC77337DF7AAE4
In UNIX shell:
echo "test_string" | md5sum
the result is:
fd77c0776e992fc96647b3bc220b3adc -
Why the results are different?