Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


#Actualmetsfan

Posted 28 June 2013 - 10:33 AM

@metsfan - I don't think that Javascript minification or obfuscation will do much to prevent cheating (maybe make cheating a bit more fun and appealing to those who might do it anyway)

 

In general you can't, and you should probably focus your effort in making a compelling game rather than preventing cheating. People can cheat in many types of games, and mostly they don't (particularly if it's single-player).

 

It is not really any easier to cheat in a HTML5 / Javascript game than one written in C++ and distributed as a binary (or NaCl, for example). This is particularly true if some or most of it is compiled e.g. with Emscripten.

 

I respectfully disagree.  I agree that some hackers will see the challenge as appealing, but obfuscation as a security technique has been proven a successful deterrent   It will remove an entire class of hackers from wanting to hack your game.  It's the same reason encryption algorithms use a cypher.  Sure, a talented hacker with a lot of time on their hands could discover the cypher and crack the algorithm, but it will deter lower level hackers who dont have the skills to crack the cypher, and the hackers who dont feel like putting in the time to crack it.  You cannot prevent 100% of all hacking, it's about staying 1 step ahead, and putting hurdles in their way.


#1metsfan

Posted 28 June 2013 - 10:33 AM

@metsfan - I don't think that Javascript minification or obfuscation will do much to prevent cheating (maybe make cheating a bit more fun and appealing to those who might do it anyway)

 

In general you can't, and you should probably focus your effort in making a compelling game rather than preventing cheating. People can cheat in many types of games, and mostly they don't (particularly if it's single-player).

 

It is not really any easier to cheat in a HTML5 / Javascript game than one written in C++ and distributed as a binary (or NaCl, for example). This is particularly true if some or most of it is compiled e.g. with Emscripten.

 

I respectfully disagree.  I agree that some hackers will see the challenge as appealing, but obfuscation in programming has been proven a successful deterrent   It will remove an entire class of hackers from wanting to hack your game.  It's the same reason encryption algorithms use a cypher.  Sure, a talented hacker with a lot of time on their hands could discover the cypher and crack the algorithm, but it will deter lower level hackers who dont have the skills to crack the cypher, and the hackers who dont feel like putting in the time to crack it.  You cannot prevent 100% of all hacking, it's about staying 1 step ahead, and putting hurdles in their way.


PARTNERS