sha1 加密校验
from werkzeug.security import check_password_hash
from werkzeug.security import generate_password_hash
-- 加密
hash = generate_password_hash('12345678', method='pbkdf2:sha1', salt_length=8)
-- 校验
check_password_hash(hash, '12345678')
from werkzeug.security import check_password_hash
from werkzeug.security import generate_password_hash
-- 加密
hash = generate_password_hash('12345678', method='pbkdf2:sha1', salt_length=8)
-- 校验
check_password_hash(hash, '12345678')