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