Do Android developers know to do confusion to anti-APK is anti-compilation, crack, through the Proguard Java code confusion. But can Android code obfuscation really play a real role? Look at the following analysis1, Android code confusionFor example, after confusing the Android code, the obfuscation will encrypt the names of all the variables, functions, and classes in the code into short alphanumeric codes
Do Android developers know to do confusion to anti-APK is anti-compilation, crack, through the Proguard Java code confusion. But can Android code obfuscation really play a real role? Look at the following analysis1, Android code confusionFor example, after confusing the Android code, the obfuscation will encrypt the names of all the variables, functions, and classes in the code into short alphanumeric codes
ProGuard IntroductionProGuard is a well-known open-source project on SourceForge. Official Website: http://proguard.sourceforge.net /.
Java bytecode is generally very easy to decompile. To protect the Java source code, we often confuse compiled class files. ProGuard is mainly used for obfuscation. Of course, it can also reduce the size and optimize the bytecode, but those are secondary features for us.
The official ProGuard article is introduced as fo
Before that, I read the proguard official website and found the relevant information.
ProGuard IntroductionProGuard is a well-known open-source project on SourceForge. Official Website: http://proguard.sourceforge.net /.Java bytecode is generally very easy to decompile. To protect the Java source code, we often confuse compiled class files. ProGuard is mainly used for obfuscation. Of course, it can also reduce the size and optimize the bytecode, but
List of commonly used tools [more common]
Obfuscation, encryption
Dotfuscator
vs Default with the tool, but a Community editionNot very strong
DotNET Reactor
used the form of nativecode and confusion
Xenocode PostBuild
Professional tools
{smartassembly}. Setup.msi
Anti-compilation Tool
Reflector
One of the most prestigious tools,
Today, I am launching a piece of Obfuscated javascript code, because the source code is lost... I was planning to get the code at the js engine level and found that it was not necessary at all. Manual decryption is much simpler than imagined. It took less than half an hour to complete the decryption.
The most important part of JavaScript obfuscation:
L eval, document. write, vbs execute, execScript, and other functions that can run JavaScript
L unesca
This article originates from the PPT shared by the members of the group, and the other Members ' documents are not disclosed because they are not authorized.This article command is a Windows 7 environment, if not specifically noted.This article only touches on the approximate knowledge point, does not involve the concrete detail, needs to pay attention.Anti-compilationApktoolCan decompile resource file (XML, point Nine) and code Smali codeUse command: Apktool d xxx.apk Output_filepathDex2jarAnti
What is code obfuscation Java is a cross-platform, interpreted language in which Java source code is compiled into an intermediate "bytecode" stored in a class file. Because of the cross-platform requirements, Java bytecode contains a lot of source code information, such as variable name, method name, and through these names to access variables and methods, these symbols with a lot of semantic information, it is easy to decompile the Java source code.
Due to the proliferation of various decompilation tools, Android programmers can only manually add proguard Before Version 2.3 to achieve code obfuscation.
Proguard is a Java code obfuscation tool.
In SDK 2.3, we can see that a proguard folder is added under Android-SDK-Windows/tools /.
Google has put proguard Technology in the android SDK, so that code obfuscation
Due to the proliferation of various decompilation tools, Android programmers can only manually add proguard Before Version 2.3 to achieve code obfuscation.
Proguard is a Java code obfuscation tool.
In SDK 2.3, we can see that a proguard folder is added under Android-SDK-Windows/tools /.
Google has put proguard Technology in the android SDK, so that code obfuscation
"Obfuscation" or "encryption" are all designed to enhance code security, prevent arbitrary access by people, and protect resources to a certain extent.
Please note that in the title of this topic, I have combined the concepts of "Confusion" and "encryption" to focus on the purpose, from the perspective of practice, we reject any means subjectively. All obfuscation techniques are used to reduce the readabil
Proguard android Obfuscation
After obfuscation and packaging, it means that the project is coming to an end and the project is going to be launched. However, people are even more annoyed when encountering problems. I also recorded problems caused by obfuscation.
First, I packed the file in android4.0 to check whether the file exists in the project.
The license
JS front-end
Code Some encrypted JS such as JScript. encode has been cracked for a long time because it must be parsed in IE plain text. There are also some encryption methods, through complex transformations, to change the source code, but eventually all escape the final trial, such as Unescape, document. Write, Eval statement to restore. The best way to protect JavaScript code is obfuscation. The goal of obfusc
important API) protection, But this only increases the cost of reading code, that is, the so-called anti-gentleman against the villain. But when obfuscation and encryption are used together, the crack time increases when the encryption is first confused (or encrypted and then confused). For the encryption of JS, you can refer to this article: http://www.cnblogs.com/top5/archive/2009/08/07/1540860.html2.demoHere's a more intuitive way to see the diffe
First, check the file "project. properties:
"Ant. properties" file, rewrite some values to adapt to your project structure. (Translation is very watery. Do not take it seriously)
This file is a code obfuscation configuration file written by Google in the tools/proguard folder of the SDK. It is a basic android code obfuscation configuration file.
Continue viewing the proguard-project.txt file:
In order to facilitate the study of the source code on the arm of giants, I specially confuse the source code and compare it with the source code. Use the obfuscation method to add the [plain proguard. config = proguard. cfg] code to the project. properties file. For how to decompile the source code, see how to decompile the ghost APK file in a previous blog. I. code structure 1. Source Code 2. Code without obfusc
Provides various official and user-released code examples. For code reference, you are welcome to learn about the past and present of php source code security encryption. I wanted to publish it in the tutorial area. I don't know how to send it. Just write it here.
PHP encryption and decryption have always been a topic. I am a newbie. Today I will briefly introduce the principles and provide some encryption obfuscation algorithms.
One/PHP encryption is
Android code obfuscation has always been a special headache, I also on the Internet or other people's blog reference a lot, the general idea is the same. I'll write about my own steps and some of the problems I've encountered when writing code obfuscation. for reference only! 1. First make sure that you create the Android program in the presence of these two files, if not, don't worry, copy the two files fr
actually a string substitution, there are 2 methods can be, one is # define, one is the use of tops.The advantage of using the # define method is that it is possible to merge the results of the confusion in a. h, #import the prefix.pch at the front of the project. It is confusing to not import or compile, import.A single-segment selector, such as Func:, can be substituted by a # define Func.Multiple segments of selector, such as A:B:C:, can be replaced by a string of # A, B, and C respectively.
The HTML5 JS application is full of validation/injection of input, requiring developers to stay on guard. At the same time, in order to prevent piracy or at least make piracy more difficult, often use obfuscation tool to confuse JS code.Online toolsHttps://tool.lu/html/support code compression, formatting, etc.Http://tool.chinaz.com/js.aspx supports compression, encryption and decryptionObfuscation tool:YUI Compressor GitHubGoogle Closure CompilerUgl
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.