from passlib.hash import pbkdf2_sha256 # 生成md5 has = pbkdf2_sha256.hash('123456') print(has) # 校验 print(pbkdf2_sha256.verify("1234561", has))
from passlib.hash import pbkdf2_sha256 # 生成md5 has = pbkdf2_sha256.hash('123456') print(has) # 校验 print(pbkdf2_sha256.verify("1234561", has))