docs: def hash(value):
      '''Detect an hash type'''
      if not value:
          return
      elif len(value) == 32:
          type = 'md5'
      elif len(value) == 40:
          type = 'sha1'
      elif len(value) == 64:
          type = 'sha256'
      else:
          return None
      return {'type': type, 'value': value}