如何保护phonegap应用程序源代码? [英] How to protect phonegap application source code?

查看:104
本文介绍了如何保护phonegap应用程序源代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否在将我的phonegap应用程序上传到Play商店时是否有人可以在安装我的应用程序后查看源代码.
如果源代码是可见的,我应该采取什么步骤来保护它?

I want to know whether when I upload my phonegap application on play store then anyone can view source code after they install my application or not.
If the source code is viewable, what steps can I take to protect it?

推荐答案

PhoneGap 应用程序基本上是 html/css 和javascript代码包装在原生Android uglify .对于普通用户来说,这就足够了.它类似于 Proguard 对本机Android apk的处理.但是,如果您希望代码逻辑的某些部分完全保密,请将其保留在服务器端本身.任何面向客户端的应用程序都是可读的(例如网页,可执行文件等).

Basically a PhoneGap application is html/css and javascript codes wrapped in a native Android WebView. So in order to protect your source code from others, you can encode it using techniques like uglify. To a normal user, this would be enough. It is similar to what Proguard does for native Android apk. However if you want total secrecy of some part of your code logic, keep it at the server end itself. Any client facing application is readable (eg- Webpages, executable files etc).

这篇关于如何保护phonegap应用程序源代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆