encrypt static method
Encrypts a message with optional additional data, a key and a nonce.
Implementation
static Uint8List encrypt(Uint8List value, Uint8List nonce, Uint8List key,
{Uint8List? additionalData}) =>
Sodium.cryptoAeadChacha20poly1305Encrypt(
value, additionalData, null, nonce, key);