static fun random(): Key
Generate a new key using a random generator.
UnsupportedOperationException - If XChaCha20Poly1305 support is not available.
UnsupportedOperationException
Return A randomly generated key.