MegatronKing / StringFog

一款自动对字节码中的字符串进行加密Android插件工具
Apache License 2.0
1.71k stars 343 forks source link

kg new RandomKeyGenerator() #65

Closed lishangwl closed 2 years ago

lishangwl commented 2 years ago

RandomKeyGenerator()在哪里参考

lishangwl commented 2 years ago

build.gradle': 16: unable to resolve class RandomKeyGenerator @ line 16, column 8. kg new RandomKeyGenerator()

sonicepro commented 2 years ago

image 同问,这怎么解决

MegatronKing commented 2 years ago
sonicepro commented 2 years ago

好的,谢谢

------------------ 原始邮件 ------------------ 发件人: "Megatron @.>; 发送时间: 2022年2月28日(星期一) 晚上6:49 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [MegatronKing/StringFog] kg new RandomKeyGenerator() (Issue #65)

默认不填kg就是RandomKeyGenerator,直接删掉。

报红是因为build.gradle里面没有import包,导个包或者写全名com.github.megatronking.stringfog.plugin.kg.RandomKeyGenerator

— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you commented.Message ID: @.***>

sonicepro commented 2 years ago

大佬,有个想法不知道有没有意义。就是编译的时候把缩进给去掉,让所有代码变成一行,加大反编译后的阅读难度

------------------ 原始邮件 ------------------ 发件人: "MegatronKing/StringFog" @.>; 发送时间: 2022年2月28日(星期一) 晚上6:49 @.>; @.**@.>; 主题: Re: [MegatronKing/StringFog] kg new RandomKeyGenerator() (Issue #65)

默认不填kg就是RandomKeyGenerator,直接删掉。

报红是因为build.gradle里面没有import包,导个包或者写全名com.github.megatronking.stringfog.plugin.kg.RandomKeyGenerator

— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you commented.Message ID: @.***>

MegatronKing commented 2 years ago

@sonicepro 缩进和编译本身没有关系,所以和反编译也没有关系。举个栗子,写代码的时候用2个空格缩进和4个空格缩进,编译的结果是一模一样的,因为缩进不是语法定义也不是语法规则。你用jadx等反编译工具看到有缩进,那也是别人自己加的。