static fun fromBytes(bytes: Bytes): Key
(source)static fun fromBytes(bytes: ByteArray): Key
(source)
Create a Key from an array of bytes.
The byte array must be of length #length()
.
bytes
- The bytes for the secret key.
Return
A secret key.