#NEWLINE# def gen_hash( password , salt ) : #NEWLINE# #INDENT# h = hashlib . new ( 'sha1' ) #NEWLINE# h . update ( password ) #NEWLINE# h . update ( salt ) #NEWLINE# hash = h . hexdigest ( ) #NEWLINE# return password