tuweni / org.apache.tuweni.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
Key!: A randomly generated key.