Unveiling Hidden Strings in Obfuscated Code
Obfuscators like ProGuard can enhance code security by obfuscating visible strings, but they may not suffice for sensitive information such as URLs or licensing data.
Hiding Sensitive Strings
To conceal sensitive strings effectively, consider the following techniques:
To implement these techniques, you can:
// Before encryption
public class Foo {
private String mySecret = "http://example.com";
}
// After encryption
public class Foo {
private String encrypted = "";
private String key = "";
private String mySecret = MyDecryptUtil.decrypt(encrypted, key);
}
Locating the R Class
During decompilation, the R class is not always readily visible due to obfuscation. However, the ProGuard mapping file can provide insights into its location:
Understanding R Class Numbers
Numbers like "2130903058" in decompiled code represent resource IDs. These numbers refer to resources in your project, such as layout files.
To find the corresponding resources:
Disclaimer: All resources provided are partly from the Internet. If there is any infringement of your copyright or other rights and interests, please explain the detailed reasons and provide proof of copyright or rights and interests and then send it to the email: [email protected] We will handle it for you as soon as possible.
Copyright© 2022 湘ICP备2022001581号-3