Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lib_base
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sikang
lib_base
Commits
a6553535
Commit
a6553535
authored
Nov 04, 2019
by
sikang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix
parent
7696ec28
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
2 deletions
+5
-2
python/config.json
+3
-0
python/help.py
+1
-1
python/tools/garble/img_garble.py
+1
-1
No files found.
python/config.json
View file @
a6553535
...
...
@@ -21,6 +21,9 @@
"//string_encryption"
:
"字符串加密方式,为false时,只做插入不做加密,未集成Philology填false"
,
"string_encryption"
:
"true"
,
"//image_garble"
:
"是否混淆图片,修改图片MD5时可能会导致图片变色,出现这种情况先设为false"
,
"image_garble"
:
"true"
,
"//activities"
:
"需要混淆的类名,匹配方式 endswith() ,如 加入Activity.java 则所有Activity结尾的类加入混淆"
,
"activities"
:
[
"Activity.java"
,
...
...
python/help.py
View file @
a6553535
...
...
@@ -40,7 +40,7 @@ if command == 0:
#布局文件混淆 必须放前面
LayoutGarble
()
.
layout_garble
(
config
)
#四大组件类名混淆
ActivityGarble
()
.
activity_garble
(
config
)
ß
ActivityGarble
()
.
activity_garble
(
config
)
#Api混淆
ApiGarble
()
.
api_garble
(
config
)
#包路径混淆
...
...
python/tools/garble/img_garble.py
View file @
a6553535
...
...
@@ -35,7 +35,7 @@ class ImageGarble:
for
main_dir
in
config
[
"lib_main"
]:
for
root
,
dirs
,
files
in
os
.
walk
(
"
%
s/
%
s/res/"
%
(
config
[
'root'
],
main_dir
)):
#改变现有图片MD5
for
file
in
files
:
for
file
in
files
and
config
[
'image_garble'
]
in
"true"
:
if
file
.
endswith
(
".png"
)
or
file
.
endswith
(
".webp"
):
path
=
os
.
path
.
join
(
root
,
file
)
try
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment