tuweni / org.apache.tuweni.crypto.sodium / KeyExchange / SecretKey / bytes

bytes

fun bytes(): Bytes (source)
Deprecated: Use #bytesArray() to obtain the bytes as an array, which should be overwritten when no longer required.

Obtain the bytes of this key. WARNING: This will cause the key to be copied into heap memory.

Return
The bytes of this key.