热门标签
更多>
搜索结果
查询Tags标签: 求取,共有 2条记录-
python3求取大文件sha1值
小文件 import hashlib import base64filePath = "test.txt" with open(filePath, "rb") as f:fileData = f.read() sha1 = hashlib.sha1() sha1.update(fileData) fileHash = base64.b64encode(sha1.digest()).decode(utf-8 ) print(fileHash) print…
2021/11/4 17:14:21 人评论 次浏览 -
python3求取大文件sha1值
小文件 import hashlib import base64filePath = "test.txt" with open(filePath, "rb") as f:fileData = f.read() sha1 = hashlib.sha1() sha1.update(fileData) fileHash = base64.b64encode(sha1.digest()).decode(utf-8 ) print(fileHash) print…
2021/11/4 17:14:21 人评论 次浏览