Exemplo n.º 1
0
 def is_valid_pw(self, pw):
     if hashpw(pw, self.pwsalt) == self.pwhash:
         return True
     else:
         return False
Exemplo n.º 2
0
 def is_valid_pw(self, pw):
     if hashpw(pw, self.pwsalt) == self.pwhash:
         return True
     else:
         return False
Exemplo n.º 3
0
 def __init__(self, name, pw):
     self.name = name 
     pwsalt = salt()
     self.pwhash = hashpw(password=pw, salt=pwsalt)
     self.pwsalt = pwsalt
Exemplo n.º 4
0
 def __init__(self, name, pw):
     self.name = name
     pwsalt = salt()
     self.pwhash = hashpw(password=pw, salt=pwsalt)
     self.pwsalt = pwsalt