generateNonce static method

Uint8List generateNonce()

Gera um nonce criptograficamente seguro de 12 bytes (ChaCha20 / AES-GCM).

Nunca reutilize o mesmo nonce com a mesma chave.

Implementation

static Uint8List generateNonce() => _randomBytes(12);