password_hashers_10.py 222 B

123456
  1. def hashPassword(self, password):
  2. """
  3. Return a hashed version of password using SHA
  4. """
  5. return hmac.new(self.storage['hmac_key'], password, hashlib.sha1
  6. ).hexdigest()