marcinmoskala
fun ByteArray.toHexString() = joinToString("") { byte -> Integer.toString((byte.toInt() and 0xFF) + 0x100, 16).substring(1) }