Converts a byte array to a hex string.
static String bytesToHex(List<int> bytes) { return bytes.map((b) => b.toRadixString(16).padLeft(2, '0')).join(); }