#NEWLINE# def _gen_hash( self , password , salt ) : #NEWLINE# #INDENT# ' Generate password hash.\n        ' #NEWLINE# h = hashlib . sha1 ( ) #NEWLINE# h . update ( self ) #NEWLINE# h . update ( password ) #NEWLINE# return h . hexdigest ( )