D | security.py | 98 def generate_password_hash(password, method='sha1', length=22, pepper=None): argument 124 hashval = hash_password(password, method, salt, pepper) 131 def check_password_hash(password, pwhash, pepper=None): argument 152 return hash_password(password, method, salt, pepper) == hashval 155 def hash_password(password, method, salt=None, pepper=None): argument 187 if pepper: 188 h = hmac.new(webapp2._to_utf8(pepper), h.hexdigest(), method)
|