(dynamic_parts_list: List[str])
| 314 | return output_path |
| 315 | |
| 316 | def generate_obfuscation_map(dynamic_parts_list: List[str]) -> Dict[str, str]: |
| 317 | obfuscation_map = {} |
| 318 | for part in dynamic_parts_list: |
| 319 | # Replace invalid characters with underscores and prepend with 'var_' to ensure it starts with a letter |
| 320 | safe_key = f"var_{hash(part)}".replace('-', '_').replace('.', '_') |
| 321 | obfuscation_map[part] = safe_key |
| 322 | return obfuscation_map |
| 323 | |
| 324 | def swap_string_using_obfuscation_map(input_string: str, obfuscation_map: Dict[str, str]) -> str: |
| 325 | """ |
no outgoing calls
no test coverage detected