crypto-secretbox-key

 

NAME

crypto-secretbox-key - randomly generate a secret key  

SYNOPSIS

crypto-secretbox-key secretkeyfile  

DESCRIPTION

Randomly generates a secret key to be used by crypto-secretbox(1) and crypto-secretbox-open(1).

The secret key will be written to the file secretkeyfile  

EXIT CODE

Normally, crypto-secretbox-key exits with 0.

If invalid arguments are given, crypto-secretbox-key exits with 100.

If either secretkeyfile already exists, or if it refers to an invalid filesystem path, then crypto-secretbox-key exits with 111.  

CRYPTOGRAPHY

This program simply reads random bytes from /dev/urandom to generate a secret key. The number of bytes is equal to the value of crypto_secretbox_KEYBYTES 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>

 

SEE ALSO

crypto-secretbox(1) crypto-secretbox-open(1)


 

Index

NAME
SYNOPSIS
DESCRIPTION
EXIT CODE
CRYPTOGRAPHY
AUTHOR
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 18:01:26 GMT, June 02, 2020