- def shaCrypt(self, password):
- shaPass = sha.new(password)
- return shaPass.hexdigest()
-
- def addUser(self, username, password):
- cursor = self.db.cursor()
- cursor.execute('INSERT INTO quasseluser (username, password) VALUES (:username, :password)',
- {'username':username, 'password':self.shaCrypt(password)})
+ def _shaCrypt(self, password):
+ return sha.new(password).hexdigest()