We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 801f018 commit 4b967abCopy full SHA for 4b967ab
docling_core/types/doc/document.py
@@ -1073,7 +1073,7 @@ def _image_to_hexhash(self) -> Optional[str]:
1073
image_bytes = self.image._pil.tobytes()
1074
1075
# Create a hash object (e.g., SHA-256)
1076
- hasher = hashlib.sha256()
+ hasher = hashlib.sha256(usedforsecurity=False)
1077
1078
# Feed the image bytes into the hash object
1079
hasher.update(image_bytes)
docling_core/utils/legacy.py
@@ -47,7 +47,7 @@
47
48
49
def _create_hash(string: str):
50
51
hasher.update(string.encode("utf-8"))
52
53
return hasher.hexdigest()
0 commit comments