----------Hashpassword----------
import bcrypt
第一次使用:
hashpass = bcrypt.hashpw(request.form['password'].encode('utf-8'),bcrypt.gensalt())
以后的check:
e.g.
if bcrypt.hashpw(password, hashed) == hashed:
print("It Matches!")
else:
print("It Does not Match!")
需要encode('UTF-8') 不然可能报