开发者

How can I protect the source of my HTML Metro app?

开发者 https://www.devze.com 2023-04-07 06:24 出处:网络
I\'m really interested in building applications in a Windows 8 Metro style. I would like to use HTML5 but I am very concerned about protecting my front end UI from deconstruction and ultimately being

I'm really interested in building applications in a Windows 8 Metro style. I would like to use HTML5 but I am very concerned about protecting my front end UI from deconstruction and ultimately being ripped off by others. Unfortunately, my service is all open source so I cannot really hide things there unless i implement some sort of middle man between the open source service and my front end HTML5 app.

So as the title says, how do I protect the开发者_高级运维 source of my HTML Metro Application?


You have two options:

  1. Run a JavaScript obfuscator over your code. This will make it much harder to figure out, but not impossible.
  2. Implement the critical functions as C++ methods. You can call these using WinRT easily from JavaScript. This will make it much harder to understand what is going on.


If you want to keep something (anything) secret, do NOT pass it to the client.

There might be some kind of obfuscation that I don't know about (yet) but still it will be possible to reconstruct the code.

0

精彩评论

暂无评论...
验证码 换一张
取 消