Search code examples
javascriptsecuritywindows-8windows-runtimewinjs

Obscure/Protect Javascript Source Code in Windows 8 Apps


As you might know, in Windows 8 (Metro/RT/WinJS) apps, when they are acquired from the windows app store and installed to a local computer, all the original source code javascript files are clearly viewable in the windows filesystem.

As such, is there some way that I can obscure, hide, or protect the javascript code so as to avoid the possibility of it being stolen and used to make a new app? At the very least, I'd like it to be a bit harder than for someone to just open the folder and read the code in it's original state....

Thanks!


Solution

  • I wrote up some notes on the options you have for Windows 8/8.1: http://www.kraigbrockschmidt.com/2013/04/04/protecting-your-code/. Windows 10 might offer some better options. For example, the Hosted Web App option described on http://blogs.windows.com/buildingapps/2015/07/06/project-westminster-in-a-nutshell/ will let you keep lots of code on the server. But I haven't looked at everything that's being done there.