or ``` fun ByteArray.toHexString() = joinToString(...
# stdlib
m
or
Copy code
fun ByteArray.toHexString() = joinToString("") { byte -> "%02x".format(byte) }
But I would need to unit-test it to be sure if this one is ok