Tag: python

  • Get MD5 checksum hash of big files in Python

    def checkHash(filename, blocksize=2**20):     try:         print(“need to creating hash of file ” +filename)         m = hashlib.md5()         with open(filename , “rb” ) as f:             while True:                 buf = f.read(blocksize) […]