import hashlib
BLOCKSIZE = 65536
# Block read size if file is big enough
fileToOpen = 'E:\\new_python\\new_doc2.txt'
hasher = hashlib.md5()
with open(fileToOpen, 'rb') as afile:
buf = afile.read(BLOCKSIZE)
while len(buf) > 0:
hasher.update(buf)
buf = afile.read(BLOCKSIZE)
print(hasher.hexdigest())
#clcoding.com
d41d8cd98f00b204e9800998ecf8427e
0 Comments:
Post a Comment