混淆規則使用

2021-10-02 23:54:16 字數 379 閱讀 5318

我要keep com.zhangyue.ireader.plugin_social.data.drfitbottle.bottle.pojo 包下面的所有的類,防止release 版本的包出現問題。

-keep class com.zhangyue.ireader.plugin_social.data.drfitbottle.bottle.pojo
-keep class com.zhangyue.ireader.plugin_social.data.drfitbottle.bottle.pojo.**
很明顯,上面那個應該意思是keep pojo這個類的所有元素。

而下面這個才是keep pojo 包下的所有內容。

Android 通用混淆規則

通用版 不混淆泛型 keepattributes sourcefile keepattributes signature,innerclasses,exceptions,deprecated,sourcefile,linenumbertable,annotation enclosingmethod ...

使用proguard混淆打包APK

在打包發布android應用的時候,可以應用proguard來對 進行混淆,防止有人反編譯apk獲取源 之前建立android 2.3的專案的時候,會在根部錄下自動建立proguard.cfg檔案,4.0之後需要手動建立。在工程中新增proguard.cfg,內容如下 上面的 可以用於呼叫第三方包的...

混淆解密 混淆電路介紹(三)混淆電路原理

在混淆電路介紹 一 中,我們介紹了混淆電路 garbled circuits,gc 背後依賴的密碼學思想 不經意傳輸 oblivious transfer,ot 在混淆電路介紹 二 中,我們成功地將乙個比較大小的函式轉化成了乙個邏輯電路。在這篇文章中,我們將基於以上兩篇文章,詳細介紹 gc 協議的原...