File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -188,6 +188,19 @@ <h3 class="mb-1 border-b border-zinc-800 text-2xl">
188188 />
189189 < label for ="obf_print-checkbox "> Remove Print</ label >
190190 </ div >
191+ < div class ="group relative ">
192+ < span class ="hover-tooltip ">
193+ Remove type hints.
194+ </ span >
195+ < input
196+ type ="checkbox "
197+ name ="obf_type_hints "
198+ id ="obf_type_hints-checkbox "
199+ value ="true "
200+ checked
201+ />
202+ < label for ="obf_type_hints-checkbox "> Remove Types</ label >
203+ </ div >
191204 </ div >
192205 < h3 class ="mb-1 border-b border-zinc-800 pt-4 text-2xl ">
193206 Control Flow
@@ -217,6 +230,18 @@ <h3 class="mb-1 border-b border-zinc-800 pt-4 text-2xl">
217230 />
218231 < label for ="obf_dead_code-checkbox "> Dead Code</ label >
219232 </ div >
233+ < div class ="group relative ">
234+ < span class ="hover-tooltip ">
235+ Add random type hints.
236+ </ span >
237+ < input
238+ type ="checkbox "
239+ name ="obf_add_type_hints "
240+ id ="obf_add_type_hints-checkbox "
241+ value ="true "
242+ />
243+ < label for ="obf_add_type_hints-checkbox "> Add Random Types</ label >
244+ </ div >
220245 </ div >
221246 < h3 class ="mb-1 border-b border-zinc-800 pt-4 text-2xl ">
222247 Rename Elements
Original file line number Diff line number Diff line change @@ -67,6 +67,12 @@ def add_obfuscation(tokens, form):
6767 "obf_print" ,
6868 obfuscator .PrintObfuscator ,
6969 )
70+ tokens = obfuscation_bool_helper (
71+ tokens ,
72+ form ,
73+ "obf_type_hints" ,
74+ obfuscator .TypeHintsObfuscator ,
75+ )
7076
7177 # control flow
7278 tokens = obfuscation_bool_helper (
@@ -81,6 +87,12 @@ def add_obfuscation(tokens, form):
8187 "obf_dead_code" ,
8288 obfuscator .DeadCodeObfuscator ,
8389 )
90+ tokens = obfuscation_bool_helper (
91+ tokens ,
92+ form ,
93+ "obf_add_type_hints" ,
94+ obfuscator .AddTypeHintsObfuscator ,
95+ )
8496
8597 # rename/move
8698 tokens = obfuscation_bool_helper (
Original file line number Diff line number Diff line change 11[project ]
22name = " python-obfuscation-framework-server"
3- version = " 2.4.7 "
3+ version = " 2.4.8 "
44description = " Python Obfuscation Framework"
55readme = " README.md"
66requires-python = " >=3.12"
@@ -26,7 +26,7 @@ dependencies = [
2626 " gunicorn[gevent]>=23.0.0" ,
2727 " markupsafe>=3.0.3" ,
2828 " pygments>=2.19.2" ,
29- " python-obfuscation-framework>=1.11.1 " ,
29+ " python-obfuscation-framework>=1.12.0 " ,
3030]
3131
3232[tool .setuptools ]
You can’t perform that action at this time.
0 commit comments