我需要隐藏 My LibGdx Game 模块 core
中的一些重要字符串
public class MyStrings {
public static String Key1 = "XXXXXXXXXXXXXXX";
public static String Key2 = "XXXXXXXXXX";
public static String Key3 = "XXXXXXXXXXXXXXXXXXXX";
....
}
我尝试使用 Gradle
方法,但无法使用 BuildConfig
。我也不能使用Base64.decode...
...ProGuard
没有帮助,我想我也不能使用C/C++方式。
请帮忙。
最佳答案
您正在寻找的混淆功能是 String Encryption ,正如您所指出的 is not supported by ProGuard 。其他混淆器,例如DashO , KlassMaster ,和DexGuard (仅适用于 Android)支持此功能。
或者,正如 @RobAu 建议的那样,您可以 write your own solution .
全面披露:我在 PreEmptive Solutions 工作,该公司生产 DashO。
关于java - 隐藏 LibGdx Game -module core- 中的重要字符串,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49182001/