Generating a SHA-256 hash from the Linux command line by ray | Aug 11, 2021 | Linux / Ubuntu | 0 comments echo will normally output a newline, which is suppressed with -n. Try this: echo -n foobar | sha256sum Submit a Comment Cancel replyYour email address will not be published. Required fields are marked *Comment * Name * Email * Website Δ This site uses Akismet to reduce spam. Learn how your comment data is processed.