diff --git a/pypdf/_writer.py b/pypdf/_writer.py index a2209c8f4..aa08e65ea 100644 --- a/pypdf/_writer.py +++ b/pypdf/_writer.py @@ -136,7 +136,7 @@ class ObjectDeletionFlag(enum.IntFlag): def _rolling_checksum(stream: BytesIO, blocksize: int = 65536) -> str: - hash = hashlib.md5() + hash = hashlib.md5(usedforsecurity=False) for block in iter(lambda: stream.read(blocksize), b""): hash.update(block) return hash.hexdigest()