Node-webkit obfuscation

Hey guys,

I’d like to ask how did you manage to obfuscate the Game Dev Tycoon ? With it being node-webkit app I would have expected tons of forks everywhere since you can’t hide the code. I love the idea of making a web app as a desktop software and I have been wondering myself for a long time on how to protect these kind of apps.

I’ve been recommended by the customer service to tag this guy @PatrickKlug

They can’t obfuscate their main HTML, and they haven’t either :wink: But the JavaScript is compressed and obfuscated. However, its not closed completely which makes it wonderful for modders!

2 Likes

@FlyingEagle as @Stian said, they didn’t compress/obfuscate their HTML, but if you wanted to you could use a obfuscater online. although i would recommend you keep a copy of the un-obfuscated code

Online HTML obfuscater: http://www.colddata.com/developers/online_tools/obfuscator.shtml

1 Like

Thank you both. I will definitely find a use for the tool in the future. Its good to know this forum has such helpful community.

1 Like

http://www.jsobfuscate.com/

2 Likes

There are several solutions out there.

https://jscrambler.com is probably the most comprehensive and also most expensive.

You could also look into the V8-snapshot feature of node-webkit.

In GDT we simply went with Google Closure Compiler. We also employed some custom tricks to obfuscate it better but, tellingly, we move more and more towards not obfuscating the game.

In the latest releases we don’t even package our assets anymore. All open for anyone to dig through on their hdd.

Personally I think the open nature of HTML and JavaScript code can be an incredible asset, instead of a disadvantage. Just look at our modding community!

2 Likes