MCPcopy Create free account
hub / github.com/Integuru-AI/Integuru / generate_obfuscation_map

Function generate_obfuscation_map

integuru/util/print.py:316–322  ·  view source on GitHub ↗
(dynamic_parts_list: List[str])

Source from the content-addressed store, hash-verified

314 return output_path
315
316def 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
324def swap_string_using_obfuscation_map(input_string: str, obfuscation_map: Dict[str, str]) -> str:
325 """

Callers 1

print_dag_in_reverseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected