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

public static String toHex ( byte [ ] data ) { return new String ( Hex . encodeHex ( data ) ) ; }
convert a byte array to hexadecimal
