randomNonce static method
Generates a random nonce for use with the XChaCha20-Poly1305 construction.
Implementation
static Uint8List randomNonce() =>
Sodium.randombytesBuf(Sodium.cryptoAeadXchacha20poly1305IetfNpubbytes);
Generates a random nonce for use with the XChaCha20-Poly1305 construction.
static Uint8List randomNonce() =>
Sodium.randombytesBuf(Sodium.cryptoAeadXchacha20poly1305IetfNpubbytes);