首页 > 解决方案 > 有谁知道如何在python中制作加密密码系统?

问题描述

我可以制作一个可以写入文件的文件,但我需要制作一个加密的文件,而不介意它使用什么模块。

标签: python-3.xauthentication

解决方案


你可以使用werkzeug.

from werkzeug.security import generate_password_hash, check_password_hash

secure_password = generate_password_hash('super-secret-password')

assert(check_password_hash(secure_password, 'super-secret-password'))

推荐阅读