toHex

fun ByteArray.toHex(upperCase: Boolean = false, byteDivider: String = "", decodeAsString: Boolean = false): String

Extension to encode a ByteArray to a string with hexadecimal numbers.