mirror of https://github.com/CIRCL/PyCIRCLean
Generate SHA256 hash instead of SHA1.
parent
dd35d23162
commit
515687b1fe
|
@ -186,8 +186,8 @@ class KittenGroomerBase(object):
|
||||||
self.log_debug_out = os.devnull
|
self.log_debug_out = os.devnull
|
||||||
|
|
||||||
def _computehash(self, path):
|
def _computehash(self, path):
|
||||||
"""Returns a sha1 hash of a file at a given path."""
|
"""Returns a sha256 hash of a file at a given path."""
|
||||||
s = hashlib.sha1()
|
s = hashlib.sha256()
|
||||||
with open(path, 'rb') as f:
|
with open(path, 'rb') as f:
|
||||||
while True:
|
while True:
|
||||||
buf = f.read(0x100000)
|
buf = f.read(0x100000)
|
||||||
|
|
Loading…
Reference in New Issue