tuweni / org.apache.tuweni.crypto.mikuli / SecretKey / fromBytes

fromBytes

static fun fromBytes(bytes: ByteArray!): SecretKey! (source)

Create a private key from a byte array

Parameters

bytes - ByteArray!: the bytes of the private key

Return
SecretKey!: a new SecretKey object

static fun fromBytes(bytes: Bytes!): SecretKey! (source)

Create a private key from bytes

Parameters

bytes - Bytes!: the bytes of the private key

Return
SecretKey!: a new SecretKey object