File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments