crypto-secretbox-open - verify and decrypt a stream of data using symmetric (secret-key) cryptography
crypto-secretbox-open secretkeyfile
Reads a stream of encrypted data from standard input, and decrypts it using secret-key authenticated cryptography from NaCl (the Networking and Cryptography library). Specifically, the encrypted data from standard input is expected to be of the format output by crypto-secretbox(1).
The secretkeyfile should point to a file with the secret key.
Normally, crypto-secretbox-open exits with 0.
If invalid arguments are given, crypto-secretbox-open exits with 100.
If an error occurs, crypto-secretbox-open exits with 111.
This program is a simply a wrapper around the crypto_secretbox_open 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.