def get_md5(str):
"""
Gets the MD5 value of the specified string
:param str:the specified string
:return:the MD5 value
"""
fd = hashlib.md5()
msg = '{}'.format(str)
# print("数据区:",msg)
fd.update(msg.encode("utf8"))
return fd.hexdigest()
该博客主要围绕Python中使用hashlib库进行MD5值计算展开,涉及信息技术领域中编程语言与加密计算的内容。
1335

被折叠的 条评论
为什么被折叠?



