Bash Scripting : sha1sum
When using echo to send text to sha1sum make sure you do it like this :
echo -n “abc123″ | sha1sum
and not
echo “abc123″ | sha1sum
Without the -n echo adds a new line to the text. Like if you were to type abc123 then hit enter.
Notice :
echo “abc123″ | sha1sum
61ee8b5601a84d5154387578466c8998848ba089
echo -n “abc123″ | sha1sum
6367c48dd193d56ea7b0baad25b19455e529f5ee







