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