gpt4 book ai didi

android - DexGuard:如何指定字符串加密

转载 作者:太空狗 更新时间:2023-10-29 12:39:14 25 4
gpt4 key购买 nike

我试图基本了解如何使用文件 dexguard-project.txt 中的命令 -encryptstring 指定字符串加密。例如,我看到

-encryptstrings "android.content.pm.PackageInfo", 
"packageName",
"versionName",
"versionCode",
............ ,
"java.lang.String",
............

这是什么意思?

最佳答案

在 DexGuard 文档 {dexgaurd root}/samples/StringEncryption/dexguard-project.txt

中有很好的选项示例

这是我倾向于使用的那些。

#encrypt a specific string in a class
-encryptstrings class com.example.HelloWorldActivity {
private static final java.lang.String MESSAGE;
}

#encrypt all strings in the class.
-encryptstrings class com.example.HelloWorldActivity

#specify the string itself, i.e any instance of "Hello world!" in your app.
-encryptstrings "Hello world!"

关于android - DexGuard:如何指定字符串加密,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31131372/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com