Пример #1
0
 def is_valid_pw(self, pw):
     if hashpw(pw, self.pwsalt) == self.pwhash:
         return True
     else:
         return False
Пример #2
0
 def is_valid_pw(self, pw):
     if hashpw(pw, self.pwsalt) == self.pwhash:
         return True
     else:
         return False
Пример #3
0
 def __init__(self, name, pw):
     self.name = name 
     pwsalt = salt()
     self.pwhash = hashpw(password=pw, salt=pwsalt)
     self.pwsalt = pwsalt
Пример #4
0
 def __init__(self, name, pw):
     self.name = name
     pwsalt = salt()
     self.pwhash = hashpw(password=pw, salt=pwsalt)
     self.pwsalt = pwsalt