public static String compactHex(byte[] bytes){
  StringBuilder sb=new StringBuilder();
  for (  byte b : bytes) {
    sb.append(hex(b));
  }
  return sb.toString();
}

public static String compactHex ( byte [ ] bytes ) { StringBuilder sb = new StringBuilder ( ) ; for ( byte b : bytes ) { sb . append ( hex ( b ) ) ; } return sb . toString ( ) ; }
convert a full byte buffer to a human readable string of nicely formatted hex numbers . output looks like : < p > 0102030405060708
