Skip to content

Commit 185334b

Browse files
author
zetier-md
committed
rm linter ignores now that md5/sha1 are marked as non-cryptographic
1 parent 1f42594 commit 185334b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

python/unblob/handlers/archive/par2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def is_valid_header(self, file_paths: list) -> bool:
6060
packet_content = f.read(
6161
header.packet_length - len(header) + offset_to_recovery_id
6262
)
63-
packet_checksum = hashlib.md5(packet_content, usedforsecurity=False).digest() # noqa: S324
63+
packet_checksum = hashlib.md5(packet_content, usedforsecurity=False).digest()
6464

6565
if packet_checksum != header.md5_hash:
6666
return False

python/unblob/report.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,8 @@ class HashReport(ReportBase):
171171
@classmethod
172172
def from_path(cls, path: Path):
173173
chunk_size = 1024 * 64
174-
md5 = hashlib.md5(usedforsecurity=False) # noqa: S324
175-
sha1 = hashlib.sha1(usedforsecurity=False) # noqa: S324
174+
md5 = hashlib.md5(usedforsecurity=False)
175+
sha1 = hashlib.sha1(usedforsecurity=False)
176176
sha256 = hashlib.sha256()
177177

178178
with path.open("rb") as f:

0 commit comments

Comments
 (0)