Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 686
soul Avatar asked Sep 26 '11 08:09

soul


1 Answers

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.
like image 95
Steve Rowe Avatar answered Sep 30 '22 13:09

Steve Rowe