From 048829d35c874346d4bdd964342855398e1a8262 Mon Sep 17 00:00:00 2001 From: Leonardo Mazzone Date: Mon, 11 Nov 2024 14:23:27 +0000 Subject: [PATCH] Change SHA1 to SHA256 --- src/matchbox/common/hash.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/matchbox/common/hash.py b/src/matchbox/common/hash.py index fe4610db..3150f95b 100644 --- a/src/matchbox/common/hash.py +++ b/src/matchbox/common/hash.py @@ -14,7 +14,7 @@ T = TypeVar("T") HashableItem = TypeVar("HashableItem", bytes, bool, str, int, float, bytearray) -HASH_FUNC = hashlib.sha1 +HASH_FUNC = hashlib.sha256 def dataset_to_hashlist(dataset: Source, model_hash: bytes) -> list[dict[str, Any]]: