This article is a good read that perfectly illustrates why air protection of your code is simply not possible. You can make it harder, very hard, even if you are as low as possible, for example. compile your code into native instructions that are not (cleanly) represented using ordinary language constructs.
But you must remember that in any case, your encrypted data must be decrypted using some key, and this key will be, at least briefly, but the important point is that it will be, in the end, in memory. There is no way around this with common operating systems and hardware. So, as a hacker, you can always go back to extracting the key from memory and work back from there. Not what average users are capable of, but it is certainly possible.
source share