def iter_sha1(iter):
 sha = sha1()
 for name in iter:
  sha.update(name)
 return sha.hexdigest().encode('ascii')

def iter_sha1 ( iter ) : sha = sha1 ( ) for name in iter : sha . update ( name ) return sha . hexdigest ( ) . encode ( 'ascii' )
return the hexdigest of the sha1 over a set of names .