12 2023 档案

摘要:1. 使用 from cryptography.fernet import Fernet 第三方库 pip3 install cryptography 2. Fernet的使用 from cryptography.fernet import Fernet # 生成加密密钥 key = Fernet. 阅读全文
posted @ 2023-12-21 12:24 是阿杰呀 阅读(280) 评论(0) 推荐(0) 编辑
摘要:判断密码长度最少8位, 且应为数字、字母和特殊符号中至少2类的组合 import re def check_password_func(password): # 长度至少为8位,且应为数字、字母和特殊符号中至少2类的组合 match1 = bool(re.search(r'\d+', passwor 阅读全文
posted @ 2023-12-19 16:19 是阿杰呀 阅读(32) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示