Android 12
I am trying to secure username and password before sending it over the internet to the server. However, I need to convert my strings into HEX and I keep getting HexFormat: unresolved reference error. There seems to be no class or library associated with that. How do I solve this error? Is there a library I need to download and install?
Unresolved Reference: HexFormat
private fun ByteArray.toHexString(): String = HexFormat.of().formatHex(this)
/|\
|
|
|

import java.util.HexFormat?