Hex

object Hex(source)

Lower-case hexadecimal encoding, used by logs, test vectors and toString() of byte-carrying types.

Functions

Link copied to clipboard
fun decode(text: String): ByteArray

Decodes text, ignoring whitespace so RFC vectors can be pasted as they are printed.

Link copied to clipboard
fun encode(bytes: ByteArray): String