mirror of
https://github.com/bellingcat/auto-archiver.git
synced 2026-06-12 05:08:28 +03:00
renaming and making default SHA-256
This commit is contained in:
@@ -167,8 +167,8 @@ class Archiver(ABC):
|
||||
ha = self.hash_algorithm
|
||||
logger.debug(f'Hash algorithm is {ha}')
|
||||
|
||||
if ha == "SHA3_512": hash = hashlib.sha3_512(bytes)
|
||||
elif ha == "SHA256": hash = hashlib.sha256(bytes)
|
||||
if ha == "SHA3-512": hash = hashlib.sha3_512(bytes)
|
||||
elif ha == "SHA-256": hash = hashlib.sha256(bytes)
|
||||
else: raise Exception("Unknown Hash Algorithm of {ha}")
|
||||
|
||||
return hash.hexdigest()
|
||||
|
||||
Reference in New Issue
Block a user