SyntaxFix
Write A Post
Hire A Developer
Questions
echo will normally output a newline, which is suppressed with -n. Try this:
echo
-n
echo -n foobar | sha256sum