crypto-box-open - verify and decrypt a stream of data using asymmetric (public-key) cryptography
crypto-box-open [ publickeyfile ] [ secretkeyfile ]
Reads a stream of encrypted data from standard input, and decrypts it using public-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-box(1).
The publickeyfile argument should point to a file with the public key of the intended message recipient. If this argument is not given, the environment variable NACL_PUBLICKEY_FILE will be used instead.
The secretkeyfile argument should point to a file with the secret key of the message sender. If this argument is not given, the environment variable NACL_SECRETKEY_FILE will be used instead.
Normally, crypto-box-open exits with 0.
If invalid arguments are given, crypto-box-open exits with 100.
If an error occurs, crypto-box-open exits with 111.
This program is a simply a wrapper around the crypto_box_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.