Lines Matching refs:md5
392 def _update_md5_for_file(md5, path, block_size=2**16): argument
397 md5.update(linkto.encode())
405 md5.update(data)
408 def _update_md5_for_directory(md5, dir_path): argument
411 _update_md5_for_file(md5, os.path.join(root, f))
415 md5 = hashlib.md5()
417 _update_md5_for_directory(md5, path)
419 _update_md5_for_file(md5, path)
420 return md5.hexdigest()
425 md5 = hashlib.md5()
427 md5.update(str(item).encode())
428 return md5.hexdigest()