Skip to content

Commit

Permalink
ignore Use of weak MD5 hash for security in old python
Browse files Browse the repository at this point in the history
  • Loading branch information
bmos committed Sep 7, 2024
1 parent f44f65f commit f6b24bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions parsons/etl/etl.py
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ def unpack_nested_columns_as_rows(self, column, key="id", expand_original=False)
lambda row: hashlib.md5(
str.encode("".join([str(x) for x in row]))
).hexdigest(),
)
) # nosec B324
orig.move_column("uid", 0)

# Rename value column in case this is done again to this Table
Expand All @@ -695,7 +695,7 @@ def unpack_nested_columns_as_rows(self, column, key="id", expand_original=False)
melted_list.add_column(
"uid",
lambda row: hashlib.md5(str.encode("".join([str(x) for x in row]))).hexdigest(),
)
) # nosec B324
melted_list.move_column("uid", 0)
output = melted_list

Expand Down

0 comments on commit f6b24bc

Please sign in to comment.