code: def hash(mapping, bind, values):
      
      for v in values:
          if v is None:
              continue
          if not isinstance(v, six.string_types):
              v = six.text_type(v)
          yield sha1(v.encode('utf-8')).hexdigest()
docs: Generate a sha1 for each of the given values.