public static String convertBytesToString( byte [] bytes, int length ) {
		StringBuffer buf = new StringBuffer( length * 2);
		for ( int i = 0 ; i < length ; ++i ) {
			String bs = Integer.toHexString( bytes[ i ] & 0xff );
			if ( bs.length() == 1 ) {
				buf.append( "0" );
			}
			buf.append( bs );
		}
		return buf.toString();
	}
Converts an integer into a string.
For example, given an integer 0x41424344,
the returned string would be "ABCD".
@param value the integer value
@return the converted string
GPL/DMG/src/dmg/java/mobiledevices/dmg/ghidra/GStringUtilities.java