crypto / net.consensys.cava.crypto.sodium / AES256GCM / Key / random

random

static fun random(): Key (source)

Generate a new key using a random generator.

Exceptions

UnsupportedOperationException - If AES256-GSM support is not available.

Return
A randomly generated key.