usermod/Utils/CommonUtils.py

9 lines
118 B
Python
Raw Normal View History

2023-02-08 14:57:34 +08:00
from hashlib import md5
2023-02-07 08:48:41 +08:00
2023-02-08 14:57:34 +08:00
# 文件md
def file_md5(body):
md = md5()
md.update(body)
return md.hexdigest()