Protecting code in android asset files

泄露秘密 提交于 2019-12-24 13:56:02

问题


I have an android application which takes place mostly in webview, I have my html files in my assets folder, but files in the assets folder are very fragile and anyone can have access to codes in assets files. I wanted to ask if you have any tips to protect html and js files in android assets folder.
Thanks very much


回答1:


Here are my personal suggestion for the security about asset folder.

  • You can load your html or js files from server to webview in runtime.
  • Encrypt your html or js files, the encrypt/decrypt keys are stored in the server, when you app run, get the decrypt key from the server to decrypt your html or js files, then render in the webview.


来源:https://stackoverflow.com/questions/28194322/protecting-code-in-android-asset-files

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!