随笔分类 - Python_Md5 加密
摘要:# !/usr/bin/env python # -*- coding:utf8 -*- import hashlib def login(username, pwd): with open("user.db", 'r', encoding='utf-8') as f: while True: li
阅读全文
摘要:import hashlib hash = hashlib.md5(bytes('88888', encoding='utf-8')) hash.update(bytes('1235678', encoding='utf-8')) print(hash.hexdigest())
阅读全文