randomKey static method

Uint8List randomKey()

Generates a random key for use with the XChaCha20-Poly1305 construction.

Implementation

static Uint8List randomKey() =>
    Sodium.cryptoAeadXchacha20poly1305IetfKeygen();