hex

fun hex(bytes: ByteArray): String(source)

Deprecated

prefer kotlin.text.toHexString

Replace with

import kotlin.text.toHexString
bytes.toHexString()

Encode bytes as a HEX string with no spaces, newlines and 0x prefixes.

Report a problem


Deprecated

prefer kotlin.text.hexToByteArray

Replace with

import kotlin.text.hexToByteArray
s.hexToByteArray()

Decode bytes from HEX string. It should be no spaces and 0x prefixes.

Report a problem