class Key : Destroyable
(source)
A HMACSHA512256 secret key.
fun bytes(): Bytes |
|
fun bytesArray(): ByteArray |
|
fun destroy(): Unit |
|
fun equals(other: Any?): Boolean |
|
static fun fromBytes(bytes: Bytes): Key static fun fromBytes(bytes: ByteArray): Key
Create a Key from an array of bytes. The byte array must be of length |
|
fun hashCode(): Int |
|
fun isDestroyed(): Boolean |
|
static fun length(): Int
Obtain the length of the key in bytes (32). |
|
static fun random(): Key
Generate a random Key. |