Pastebin
Paste #25029: No description
< previous paste - next paste>
Pasted by Anonymous Coward
def compute_hash(file_path): with open(file_path, 'rb') as f: file_contents = f.read() file_hash = hashlib.blake2b(file_contents).hexdigest() return file_hash
New Paste
Go to most recent paste.