Beispiel #1
0
 def hash(s):
     return hash(s)
Beispiel #2
0
 def login(s):
     pw = request.form["pass"]
     # print("comparing passwords",hash(pw),s['pass'])
     if hash(pw) == s["pass"]:
         s.loggedin = True
         s.setstate("loggedin")
Beispiel #3
0
from betterhash import bhash as hash
print(hash("1234"))
Beispiel #4
0
 def register(s):
     s["pass"] = hash(request.form["pass"])
     s.loggedin = True
     s.setstate("loggedin")
Beispiel #5
0
 def hash(s):
     return hash(json.dumps(s.to_dict(),indent=2,sort_keys=True))