(self, password, keyfile)
return (remote_final == final)
Check received password
Check received password
Check received password
def check_password(self, password, keyfile):
        """Check received password"""

        master = get_key(password, keyfile, True)
        remote_final =  transform_key(master, self.db._transf_randomseed,
                                      self.db._final_randomseed,
                                      self.db._key_transf_rounds)
        master = get_key(self.db.password, self.db.keyfile)
        final =  transform_key(master, self.db._transf_randomseed,
                               self.db._final_randomseed,
                               self.db._key_transf_rounds)
        return (remote_final == final)
def check_password ( self , password , keyfile ) : master = get_key ( password , keyfile , True ) remote_final = transform_key ( master , self . db . _transf_randomseed , self . db . _final_randomseed , self . db . _key_transf_rounds ) master = get_key ( self . db . password , self . db . keyfile ) final = transform_key ( master , self . db . _transf_randomseed , self . db . _final_randomseed , self . db . _key_transf_rounds ) return ( remote_final == final )