public static String encodeHex(byte[] data){
  return new String(Hex.encode(data));
}

public static String encodeHex ( byte [ ] data ) { return new String ( Hex . encode ( data ) ) ; }
hex - encodes the given byte array .
