From c35c7df88095a882773f3a596dad0b0f223bc3e0 Mon Sep 17 00:00:00 2001 From: Wil Thieme Date: Sat, 7 Sep 2024 12:24:41 -0400 Subject: [PATCH] add usedforsecurity=False to column uid in etl.py --- parsons/etl/etl.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/parsons/etl/etl.py b/parsons/etl/etl.py index 25c696f192..a1e9e99570 100644 --- a/parsons/etl/etl.py +++ b/parsons/etl/etl.py @@ -660,7 +660,8 @@ def unpack_nested_columns_as_rows(self, column, key="id", expand_original=False) if "uid" not in self.columns: orig.add_column( "uid", - lambda row: hashlib.md5(str.encode("".join([str(x) for x in row]))).hexdigest(), + lambda row: hashlib.md5(str.encode("".join([str(x) for x in row])), + usedforsecurity=False).hexdigest(), ) orig.move_column("uid", 0) @@ -675,7 +676,8 @@ def unpack_nested_columns_as_rows(self, column, key="id", expand_original=False) # Add unique id column by hashing all the other fields melted_list.add_column( "uid", - lambda row: hashlib.md5(str.encode("".join([str(x) for x in row]))).hexdigest(), + lambda row: hashlib.md5(str.encode("".join([str(x) for x in row])), + usedforsecurity=False).hexdigest(), ) melted_list.move_column("uid", 0) output = melted_list