有需求,要做破損項(xiàng)。大概就是加內(nèi)部類,然后破壞內(nèi)部類的 class 文件,使其反編譯時(shí)連帶外部類都不可見(jiàn)。試試找找折騰了一個(gè)下午,沒(méi)得出個(gè)結(jié)果。
就是想問(wèn)一下,一般都是改哪幾個(gè)字節(jié)的?先謝過(guò)為敬
光陰似箭催人老,日月如移越少年。
It can indeed be achieved. But the probability is low, and the specific reasons are not very clear.
Is this possible? There are standards for class bytecode. As long as the jvm knows your class, it must be decompiled.
proguard
代碼混淆工具,這種呢也是可以反編譯的,不過(guò)非常難讀。
還有一種方式就是將class/jar文件加密,自定義ClassLoader
實(shí)現(xiàn)在加載class
Decrypt before loading.