Function dryoc::classic::crypto_secretbox::crypto_secretbox_easy
source · pub fn crypto_secretbox_easy(
ciphertext: &mut [u8],
message: &[u8],
nonce: &Nonce,
key: &Key
) -> Result<(), Error>
Expand description
Encrypts message
with nonce
and key
.
Compatible with libsodium’s crypto_secretbox_easy
.