code: public static String toHex(byte[] bytes, String separator) {
        return toHex(bytes, 0, bytes.length, separator);
     }
docs: Encodes an array of bytes as hex symbols.
  
  @param bytes
  the array of bytes to encode
  @param separator
  the separator to use between two bytes, can be null
  @return the resulting hex string