The crypto_secretbox() function encrypts and authenticates a message 'msg' using a secret key 'key' and a nonce 'nonce'. The crypto_secretbox() function returns the resulting ciphertext 'c'.
resulting cyphertext
secret key
nonce
success flag and cyphertext in 'c'
See Implementation
The crypto_secretbox() function encrypts and authenticates a message 'msg' using a secret key 'key' and a nonce 'nonce'. The crypto_secretbox() function returns the resulting ciphertext 'c'.