crypto-hash-sha256 - produce a SHA256 hash of the input
Reads a complete stream of data from standard input, computes its SHA256 checksum, and prints out the result in hexidecimal.
-b
output in binary mode
Normally, crypto-hash-sha256 exits with 0.
If invalid arguments are given, crypto-hash-sha256 exits with 100.
If an error occurs, crypto-hash-sha256 exits with 111.
This program is a simply a wrapper around the crypto_hash_sha256 function provided by NaCl, the Networking and Cryptography library by Daniel J. Bernstein and Tanja Lange. See the official website http://nacl.cr.yp.to/ for details.