Home  >  Article  >  Backend Development  >  如何防止JD-GUI、JD-Eclipse 查看自己代码?

如何防止JD-GUI、JD-Eclipse 查看自己代码?

WBOY
WBOYOriginal
2016-06-06 20:43:411212browse

在自己Android学习过程中发现有种jd-gui反编译工具。有那位开发大牛有防止jd-gui查看自己代码方法!

回复内容:

在自己Android学习过程中发现有种jd-gui反编译工具。有那位开发大牛有防止jd-gui查看自己代码方法!

java代码混淆

使用Proguard来混淆代码,可以达到你的目的。

AndroidStuido生成项目的时候会自动的创建Proguard的配置文件,你只需要定制就可以了。

http://developer.android.com/guide/developing/tools/proguard.html

使用jd-gui查看class文件的时候,经常会发现有一些方法或类,无法正常的显示出来。

请输入图片描述如何防止JD-GUI、JD-Eclipse 查看自己代码?

我们可以利用这个bug,来阻止jd-gui反编译我们的class文件。
http://blog.segmentfault.com/aijiami/1190000000635798
App安全检测平台(http://safe.ijiami.cn)。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn