public static String byteArrayToHexString(byte[] block){
  StringBuffer buf=new StringBuffer();
  int len=block.length;
  for (int i=0; i < len; i++) {
    byte2hex(block[i],buf);
    if ((i < len - 1) & WITH_BYTE_SEPARATOR) {
      buf.append(BYTE_SEPARATOR);
    }
  }
  return buf.toString();
}

public static String byteArrayToHexString ( byte [ ] block ) { StringBuffer buf = new StringBuffer ( ) ; int len = block . length ; for ( int i = 0 ; i < len ; i ++ ) { byte2hex ( block [ i ] , buf ) ; if ( ( i < len - 1 ) & WITH_BYTE_SEPARATOR ) { buf . append ( BYTE_SEPARATOR ) ; } } return buf . toString ( ) ; }
description of the method
