I am about to publish an application that has a great amount of JavaScript in the Assets/ folder. I have shrinked minimized & combined everything (JS) into ONE big file around 500kb. I am looking for ways to encrypt it and hide it from the assets folder.
What are in your opinion the best ways to do it?
store as plain string inside Java Class and (i don't know if its possible) tell proguard to specifically encrypt this. --> i would serve it to
WebView
viaonintercepturlloading
store as encrypted file inside Assets, hot-decrypt with any third-party or Java crypto routines - that I'd like to hear about.
whatever you want
Ideally the solution should be included as part of the build process, but I would manually generate the encrypted data if there's no other solution.
EDIT: DexGuard seems the professional way to go, but it's €350, any free alternatives?
Please don't ask me why I want to encrypt it. I need to do it just like one day you need to go to the dentist.