How to encrypt HTML+JS assets in Android Phonegap mobile app?

前端 未结 4 1574
谎友^
谎友^ 2020-12-05 02:44

I have mobile app created using Phonegap basic wrapper and HTML5. My goal is to encrypt files in assets directory (JS and HTML files) so they are unreadable to people, who u

4条回答
  •  南方客
    南方客 (楼主)
    2020-12-05 03:32

    You can use a webview and load a base64 string:

    protected String base64Str = "+wL00h2L....";
    wv1.loadData(base64Str, "text/html; charset=utf-8", "base64");
    

提交回复
热议问题