public static String dump(byte[] buf){
		StringBuilder hexDisplay = new StringBuilder();
		int i = 0;
		while(i < buf.length){
			byte b = buf[i++];
			hexDisplay.append(toHex(b)).append(" ");
		}
		return hexDisplay.toString();
	}