摘要:import hashlib def calculate_md5(input_string): md5 = hashlib.md5() # 创建一个md5对象 md5.update(input_string.encode('utf-8')) # 使用utf-8编码 return md5.hexdig
阅读全文
posted @ 2024-05-06 10:48
posted @ 2024-05-06 10:48