public static char[] hexDump(byte[] data) {
		char buf[] = new char[data.length * 2];
		for (int i = 0; i < data.length; i++) {
			String b = Integer.toHexString(data[i] & 0xFF);
			if (b.length() < 2) {
				buf[i * 2 + 0] = '0';
				buf[i * 2 + 1] = b.charAt(0);
			}
			else {
				buf[i * 2 + 0] = b.charAt(0);
				buf[i * 2 + 1] = b.charAt(1);
			}
		}
		return buf;
	}
Convert binary data to a sequence of hex characters.
@param data binary data
@return hex character representation of data
Ghidra/Framework/FileSystem/src/main/java/ghidra/util/HashUtilities.java