proguard配置模糊字典

2017-01-22  本文已影响0人  码上述Andy

配置proguard模糊字典,提升代码逻辑安全性:

1.在proguard-rules.pro里配置:

-obfuscationdictionary dictionary_rules.txt
-classobfuscationdictionary dictionary_rules.txt

2.定义字典字符映射(与proguard-rules.pro在同一目录下)

dictionary_rules.txt
定义如下(当然可以配置中文,越凌乱越好):

Paste_Image.png

3.打包反编译之后效果:

Paste_Image.png

4.模糊混淆选项说明:

-obfuscationdictionary filename
指定外部模糊字典
-classobfuscationdictionary filename
指定class模糊字典
-packageobfuscationdictionary filename
指定package模糊字典

上一篇 下一篇

猜你喜欢

热点阅读