From 10bfea6a18df34e86084a53263eb4c2ab1b46217 Mon Sep 17 00:00:00 2001 From: 2000krysztof <2000krzysztof@gmail.com> Date: Tue, 1 Jul 2025 11:53:15 +0100 Subject: [PATCH] Add usedforscurity=False flag in hashlib.md5 call in utils --- easyocr/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/easyocr/utils.py b/easyocr/utils.py index 987baf2c9a6..9d658c5e9ae 100644 --- a/easyocr/utils.py +++ b/easyocr/utils.py @@ -631,7 +631,7 @@ def download_and_unzip(url, filename, model_storage_directory, verbose=True): os.remove(zip_path) def calculate_md5(fname): - hash_md5 = hashlib.md5() + hash_md5 = hashlib.md5(usedforsecurity=False) with open(fname, "rb") as f: for chunk in iter(lambda: f.read(4096), b""): hash_md5.update(chunk)