crypto-box-keypair

 

NAME

crypto-box-keypair - randomly generate a pair of corresponding public and secret keys  

SYNOPSIS

crypto-box-keypair publickeyfile secretkeyfile  

DESCRIPTION

Randomly generates a pair of public key secret keys to be used by crypto-box(1) and crypto-box-open(1).

The public key will be written to the file publickeyfile

The secret key will be written to the file secretkeyfile  

EXIT CODE

Normally, crypto-box-keypair exits with 0.

If invalid arguments are given, crypto-box-keypair exits with 100.

If either publickeyfile or secretkeyfile already exists, or if either refers to an invalid filesystem path, then crypto-box-keypair exits with 111, and neither key is written.  

CRYPTOGRAPHY

This program is a simply a wrapper around the crypto_box_keypair 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.

 

AUTHOR

Jay Sullivan <jay@identity.pub>