From dbf70b75966f97d8f47ebabb47c26a426341e8b7 Mon Sep 17 00:00:00 2001 From: Viktor Dick Date: Mon, 26 Feb 2024 10:41:09 +0100 Subject: [PATCH] Switch to SHA-1 --- perfact/zodbsync/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/perfact/zodbsync/helpers.py b/perfact/zodbsync/helpers.py index da4e682..a7c9c7a 100644 --- a/perfact/zodbsync/helpers.py +++ b/perfact/zodbsync/helpers.py @@ -252,7 +252,7 @@ def process(path): files = sorted(entry.path for entry in entries if entry.is_file()) dirs = sorted(entry.path for entry in entries if entry.is_dir()) if files: - h = hashlib.sha512() + h = hashlib.sha1() for file in files: h.update(file.encode('utf-8') + b'\n') h.update(b'\n')