AutoCython-zhang 2.3.5__tar.gz → 2.3.6__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {autocython_zhang-2.3.5 → autocython_zhang-2.3.6}/AutoCython/_version.py +1 -1
- {autocython_zhang-2.3.5 → autocython_zhang-2.3.6}/AutoCython/obfuscate.py +1 -2
- {autocython_zhang-2.3.5 → autocython_zhang-2.3.6}/AutoCython_zhang.egg-info/PKG-INFO +1 -1
- {autocython_zhang-2.3.5 → autocython_zhang-2.3.6}/AutoCython_zhang.egg-info/top_level.txt +0 -1
- {autocython_zhang-2.3.5 → autocython_zhang-2.3.6}/PKG-INFO +1 -1
- {autocython_zhang-2.3.5 → autocython_zhang-2.3.6}/AutoCython/AutoCython.py +0 -0
- {autocython_zhang-2.3.5 → autocython_zhang-2.3.6}/AutoCython/__init__.py +0 -0
- {autocython_zhang-2.3.5 → autocython_zhang-2.3.6}/AutoCython/compile.py +0 -0
- {autocython_zhang-2.3.5 → autocython_zhang-2.3.6}/AutoCython/run_tasks.py +0 -0
- {autocython_zhang-2.3.5 → autocython_zhang-2.3.6}/AutoCython/tools.py +0 -0
- {autocython_zhang-2.3.5 → autocython_zhang-2.3.6}/AutoCython_zhang.egg-info/SOURCES.txt +0 -0
- {autocython_zhang-2.3.5 → autocython_zhang-2.3.6}/AutoCython_zhang.egg-info/dependency_links.txt +0 -0
- {autocython_zhang-2.3.5 → autocython_zhang-2.3.6}/AutoCython_zhang.egg-info/entry_points.txt +0 -0
- {autocython_zhang-2.3.5 → autocython_zhang-2.3.6}/AutoCython_zhang.egg-info/requires.txt +0 -0
- {autocython_zhang-2.3.5 → autocython_zhang-2.3.6}/LICENSE +0 -0
- {autocython_zhang-2.3.5 → autocython_zhang-2.3.6}/MANIFEST.in +0 -0
- {autocython_zhang-2.3.5 → autocython_zhang-2.3.6}/README.md +0 -0
- {autocython_zhang-2.3.5 → autocython_zhang-2.3.6}/pyproject.toml +0 -0
- {autocython_zhang-2.3.5 → autocython_zhang-2.3.6}/setup.cfg +0 -0
|
@@ -482,7 +482,7 @@ class _OpaquePredicateInserter(ast.NodeTransformer):
|
|
|
482
482
|
|
|
483
483
|
|
|
484
484
|
def obfuscate_source(source_code: str, seed=None) -> str:
|
|
485
|
-
"""
|
|
485
|
+
"""对源码执行六重 AST 变换:去 docstring、局部变量重命名、
|
|
486
486
|
字符串加密、常量折叠、控制流平坦化、虚假分支。
|
|
487
487
|
ast.unparse() 天然丢弃所有注释。
|
|
488
488
|
|
|
@@ -493,7 +493,6 @@ def obfuscate_source(source_code: str, seed=None) -> str:
|
|
|
493
493
|
rng = random.Random(seed) if seed is not None else random
|
|
494
494
|
tree = ast.parse(source_code)
|
|
495
495
|
tree = _DocstringRemover().visit(tree)
|
|
496
|
-
tree = _AnnotationRemover().visit(tree)
|
|
497
496
|
tree = _LocalVarRenamer().visit(tree)
|
|
498
497
|
tree = _ControlFlowFlattener(rng=rng).visit(tree)
|
|
499
498
|
tree = _OpaquePredicateInserter(rng=rng).visit(tree)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{autocython_zhang-2.3.5 → autocython_zhang-2.3.6}/AutoCython_zhang.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{autocython_zhang-2.3.5 → autocython_zhang-2.3.6}/AutoCython_zhang.egg-info/entry_points.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|