MegatronKing / StringFog

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

匿名内部类还是混淆了字符 #91

Open LYC-Android opened 1 year ago

LYC-Android commented 1 year ago

匿名内部类好像没地方加@stringIgnore 然后就会被混淆了

MegatronKing commented 1 year ago

确实,这个是我没考虑到匿名内部类需要反混淆

MegatronKing commented 1 year ago

看样子没有临时解决办法,只有把StringFogIgnore拓展到方法级别了

LYC-Android commented 1 year ago

感谢你的回复,也不知道回复啥好了。先这样处理咯,其实也影响不大的吧,只是可能编译慢一点? 

 

------------------ 原始邮件 ------------------ 发件人: "Megatron @.>; 发送时间: 2022年12月1日(星期四) 下午4:38 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [MegatronKing/StringFog] 匿名内部类还是混淆了字符 (Issue #91)

看样子没有临时解决办法,只有把StringFogIgnore拓展到方法级别了

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

LYC-Android commented 1 year ago

我也不是很懂,不过道理上来说他不是一个扫描所有文件哪个带了这个注解,然后得到一个集合,然后匿名内部类都是$1 $A这样的类,好像理论上是可以搞的把

 

------------------ 原始邮件 ------------------ 发件人: "MegatronKing/StringFog" @.>; 发送时间: 2022年12月1日(星期四) 下午4:38 @.>; @.**@.>; 主题: Re: [MegatronKing/StringFog] 匿名内部类还是混淆了字符 (Issue #91)

看样子没有临时解决办法,只有把StringFogIgnore拓展到方法级别了

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

MegatronKing commented 1 year ago

匿名内部类是可以识别出来的,但是你在源码里加不了注解,识别出来了我也不知道是要加密还是不加密处理。