Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/208.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/security/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
保护android资产文件中的代码_Android_Security_Webview_Assets - Fatal编程技术网

保护android资产文件中的代码

保护android资产文件中的代码,android,security,webview,assets,Android,Security,Webview,Assets,我有一个android应用程序,它主要在webview中运行,我的资产文件夹中有html文件,但资产文件夹中的文件非常脆弱,任何人都可以访问资产文件中的代码。我想问一下您是否有保护android资产文件夹中html和js文件的提示。 非常感谢以下是我个人关于资产文件夹安全性的建议 您可以在运行时将html或js文件从服务器加载到webview 加密html或js文件,加密/解密密钥存储在服务器中,当应用程序运行时,从服务器获取解密密钥以解密html或js文件,然后在webview中呈现 希望这

我有一个android应用程序,它主要在webview中运行,我的资产文件夹中有html文件,但资产文件夹中的文件非常脆弱,任何人都可以访问资产文件中的代码。我想问一下您是否有保护android资产文件夹中html和js文件的提示。

非常感谢

以下是我个人关于资产文件夹安全性的建议

  • 您可以在运行时将html或js文件从服务器加载到webview
  • 加密html或js文件,加密/解密密钥存储在服务器中,当应用程序运行时,从服务器获取解密密钥以解密html或js文件,然后在webview中呈现
希望这有帮助