parameters: (md5=None, data=None)
return_statement: return hex_data
docstring: Convert data into hex formatted output.
  
      :param md5: The MD5 of the Sample to parse.
      :type md5: str
      :param data: The data to parse.
      :type data: str
      :returns: str
docstring_summary: Convert data into hex formatted output.
docstring_tokens: Convert data into hex formatted output .
function: def make_hex(md5=None, data=None):
      """
      Convert data into hex formatted output.
  
      :param md5: The MD5 of the Sample to parse.
      :type md5: str
      :param data: The data to parse.
      :type data: str
      :returns: str
      """
  
      if md5:
          data = get_file(md5)
      length = 16
      hex_data = ''
      digits = 4 if isinstance(data, unicode) else 2
      for i in xrange(0, len(data), length):
          s = data[i:i+length]
          hexa = ' '.join(["%0*X" % (digits, ord(x))  for x in s])
          text = ' '.join([x if 0x20 <= ord(x) < 0x7F else '.'  for x in s])
          hex_data += "%04X   %-*s   %s\r\n" % (i, length*(digits + 1), hexa, text)
      return hex_data
function_tokens: def make_hex ( md5 = None , data = None ) : if md5 : data = get_file ( md5 ) length = 16 hex_data = '' digits = 4 if isinstance ( data , unicode ) else 2 for i in xrange ( 0 , len ( data ) , length ) : s = data [ i : i + length ] hexa = ' ' . join ( [ "%0*X" % ( digits , ord ( x ) ) for x in s ] ) text = ' ' . join ( [ x if 0x20 <= ord ( x ) < 0x7F else '.' for x in s ] ) hex_data += "%04X   %-*s   %s\r\n" % ( i , length * ( digits + 1 ) , hexa , text ) return hex_data