Crypto_box.Secretbox
val unsafe_of_bytes : Stdlib.Bytes.t -> key
secretbox key msg nonce
encrypts and authenticates the data in msg
using key
and nonce
and returns the authentication tag and the ciphertext in one buffer. For this reason, the returned buffer will be tag_length
longer than msg
.