Chrome应用代码是否对用户可见? [英] Are chrome apps code visible to the users?

查看:119
本文介绍了Chrome应用代码是否对用户可见?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在考虑在html5中编写一个chrome应用程序。这将是桌面上的应用程序,供用户独立于互联网使用。但是,如果存在我不希望用户查看或复制的算法,那么问题就在于什么?我只想授予用户应用它的能力。

I was thinking about writing a chrome app in html5. This would be an app on the desktop for the user to use, independent of the internet. However, the concern is what if there are algorithms that I don't want the user to see or copy? I would just want to grant the user the ability to apply it.

是否无法隐藏您不希望用户复制的应用代码?

Is it impossible to hide the app code that you wouldn't want the user to copy?

推荐答案

不,隐藏代码是不可能的。您可以对其进行模糊处理和最小化,但这是关于它的。

No, it's not possible to hide your code. You can obfuscate and minimize it, but that is about it.

如果您拥有可以保护的专有算法,您可以将它们留在服务器上并使用XHR在那里执行它们。或者您可以使用本机客户端将您的应用程序的一部分用C语言编写并编译为低级中间语言(便携式NaCl,首选)或机器代码(NaCl)。

If you have proprietary algorithms you're protective of, you can always leave them on a server and use XHR to execute them there. Or you could use native client to have a portion of your app written in C and compiled to a low level intermediate language (portable NaCl, which is preferred), or machine code (NaCl).

注意所有原生应用都有这个问题;机器代码也可以进行逆向工程。使用HTML / javascript更容易。

Note all native apps have this problem; machine code can also be reverse engineered. Its just easier with HTML / javascript.

这篇关于Chrome应用代码是否对用户可见?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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