Are chrome apps code visible to the users?

谁说我不能喝 提交于 2019-12-13 16:28:07

问题


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?


回答1:


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

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).

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



来源:https://stackoverflow.com/questions/23663311/are-chrome-apps-code-visible-to-the-users

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