In order to prevent the results of their own work stolen by others, confusing code can effectively prevent the anti-compilation1. It may be noted that a new project will see the project under the Proguard-project.txt a file, which is very important for confusing code, if you accidentally deleted it, it's okay, copy one from somewhere else.2. The most important thing is to add the confusing statement to the Proguar
The topic of code obfuscation for iOS application security is divided into the following chapters:
1.iOS Application Safety Code obfuscation design article
2.iOS Application Security Code obfuscation implementation Chapter
The security of iOS application is becoming more and more important with the exposure of various events. What can be done about the security
apk–> choose to create a good key KeyStore (do not create one), and then click Next will pop up the following image of the dialog box:
Here you can also select a channel or build type,flavors to select at least one, click Finish can also be multi-channel packaging.
Sigh: It's been a hassle to use Eclipse's multi-channel packaging, and now it feels good and quick to pack as a multi-channel package.
Second, code confusion
1, the Build.gradle in the buildtypes under the minifyenable to True
android.support.v4.** {;}If you add a gson bag, then add-libraryjars Libs/gson-2.2.2.jar-keep class Sun.misc.Unsafe {*;}-keep class com.google.gson.stream.* {;}-keep class Com.google.gson.examples.android.model.* {;}-keep class Com.google.gson.* {*;}If the project contains entities referencing interfaces , then add -keep public class * Implements java.io.serializable{public protected Private *;}IfEntity with set value injection in ProjectWords,May be in the packaging run without error, But run
Source: javascriptOnlineObfuscator http://www.BizStruct.cn/JavascriptOnlineObfuscator
Objective of Javascript code obfuscation
Javascript is a script language for interpretation and execution. It is mainly used in browsers of clients in the Web field. Due to the characteristics of Javascript interpretation and execution, the Code must be downloaded to the client in plain text, debugging is easy, making it very difficult to protect Javascript code;
Di
Source: javascriptOnlineObfuscator http://www.BizStruct.cn/JavascriptOnlineObfuscator
Objective of Javascript code obfuscation
Javascript is a script language for interpretation and execution. It is mainly used in browsers of clients in the Web field. Due to the characteristics of Javascript interpretation and execution, the Code must be downloaded to the client in plain text, debugging is easy, making it very difficult to protect Javascript code;
Dif
Today in the confusion, the aurora is wrong to push the paper, the error is as follows: (The following error code from another article excerpt from, because has been resolved, will no longer show my own error message, basically is consistent, except the time. )Baidu all kinds of solutions on the Internet, after trying n times still invalid, the last colleague to his confused files all replaced, and not simply a jar file, and finally the perfect solution. Here's a quick solution:1. add code to y
I am on the blog to publish some of my Android learning experience, I hope that everyone can help.This article tells us about how to confuse Android in the latest ADT environment.在新版本号的ADT创建项目时。混码的文件不再是proguard.cfg。 而是project.properties和proguard-project.txt。 我们把之前配置都配置好了。proguard已经在包括在sdk中了。Environment Configuration Reference Android learning experience (1)---Android environment under Mac build假设须要对项目进行全局混码
The obfuscation configuration file in the Eclipse project is copied to the as in the confusing process that prompts the following errorSolution:Delete the from -libraryjars libs/***.jar your Proguard-rules.pro file.The reason is that the Build.gradle file is configured withdependencies {Compile filetree (include: ' *.jar ', dir: ' Libs ')}Inside has been added jar package, confused file
confused-keep public class * extends Android.content.ContentProvider # Keep What classes are notConfuse-keep public class * extends Android.app.backup.BackupAgentHelper # Keep What classes are not confused-keep public class * extends Android.preference.Preference # Keep What classes are not confused-keep public class Com.android.vending.licensing.ILicensingS Ervice # Keep What classes are not confused-libraryjars Libs/gson-2.0.jar # Keep A third-party jar Not to be confused-keepclasseswithmembe
confused-keep public class * extends Android.content.ContentProvider # Keep What classes are notConfuse-keep public class * extends Android.app.backup.BackupAgentHelper # Keep What classes are not confused-keep public class * extends Android.preference.Preference # Keep What classes are not confused-keep public class Com.android.vending.licensing.ILicensingS Ervice # Keep What classes are not confused-libraryjars Libs/gson-2.0.jar # Keep A third-party jar Not to be confused-keepclasseswithmembe
First in: Project.Properties file, start code obfuscationProguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt to cancel this line of comments.Modify the Proguard-project.txt code to confuse the file.1) Caution ignoring warnings-ignorewarnings-dontwarn2) Note that using a class that is reflective requires a keep-keepattributes Signat
confused-keep public class * extends Android.content.ContentProvider # Keep What classes are notConfuse-keep public class * extends Android.app.backup.BackupAgentHelper # Keep What classes are not confused-keep public class * extends Android.preference.Preference # Keep What classes are not confused-keep public class Com.android.vending.licensing.ILicensingS Ervice # Keep What classes are not confused-libraryjars Libs/gson-2.0.jar # Keep A third-party jar Not to be confused-keepclasseswithmembe
# ADD Project specific Proguard rules here.# By default, the "flags in" This file is appended to the flags specified# in E:\android\sdk/tools/proguard/proguard-android.txt# You can edit the include path and order by changing the Proguardfiles# directive in Build.gradle.## for more details, see# http://developer.android.com/guide/developing/tools/proguard.html#
1. Definition and distinction of the threecompression : Delete all comments in Javascript code, tick mark, line break symbol and useless space, thus compressing JS file size, optimize page loading speed.obfuscation : by encoding variable and function names into meaningless names (such as function (A,B,C,E,G), etc.), to prevent others from peeking and stealing Javascript source code, but also a certain compression effect.Encryption : The general use of the Eval method of encryption, the effect an
Introduction:Front-end code is a direct burst in the browser, many web attacks are directly debug business logic to find vulnerabilities to attack, in addition to some like "for nothing" molecular violence to steal other people's web page simple modification to profit, overall is the front-end logic is too easy to read, This article mainly based on JavaScript obfuscator introduce the basic idea of front-end confusion.First, JavaScript obfuscator introduction:JavaScript Obfuscator is a JS
The code to confuse the APK is as follows:(1) Locate the Project.Properties file in the project, and after configuring the target property, addProguard.config=proguard-project.txt This property, You can confuse the code. (2) If you need to specify a specific class that does not require code obfuscation, in the Proguard-project.txt fileAdd the following syntax to
The obfuscation configuration file in the Eclipse project is copied to the as in the confusing process that prompts the following errorSolution:Delete the from -libraryjars libs/***.jar your Proguard-rules.pro file.The reason is that the Build.gradle file is configured withdependencies {Compile filetree (include: ' *.jar ', dir: ' Libs ')}Inside has been added jar package, confused file
Why do you want to confuse code?
Refer to: http://www.cnblogs.com/wangcan/p/3477840.html
1,android Studio 1.3 versions before!Used to think IntelliJ idea and Android studio in the Proguard-project.txt inside set up, in the compile time directly to the code to confuse, after their own anti-compilation only found, what is confused, there is a operation did not do,(You'll need to tick the run Proguard
Let's take a look at the following ideas:
Solve the problem that JSON cannot be parsed after gson Obfuscation
1. Do not confuse classes in the Google gson jar package
2. All attribute names in the object class implementing java. Io. serializable cannot be confused.
3. for serialization and deserialization, writeobject (); readobject (); writereplace (); readresolve (); cannot be confused.
Therefore, add
-Keep class com. Google .**{*;}
-Keepclassme
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.