February 25 2017

Bit more #indidev tonight. Questions, Encryption and (Anti)Tampering. #gamedev gets you something for #screenshotsaturday everytime.

You might remember a previous post all about the questions (I do believe someone even got one right, but they did have an unfair advantage).

So, I've been working on that for a little while now, I've had various problems, unsure if it's my coding style or the limitations of the software I'm using but I managed to overcome all the problems and ultimately get to a point that I'm happy with.

So, here is the thing, the questions and answers, I really don't want someone being able to find them (at the moment, I'm using temporary questions and answers which are on the net anyways, but when they are replaced, this will apply) as that defeats the purpose of the game puzzle, as you could just open the file and there is the answer. So I had to opt for some form of encryption.

So, I've got to a stage now were the files are encrypted so looking at them won't give you the information right away and I've also incorporated a simple tampering mechanism, which can detect if you try to change the external data, any changes to see what happens will cause the questions to change (and the answers) to the point were it advises you to restart the game (unless you've made a backup of them and put them back the way they were and continue the game)

While it's not the ultimate protection, it's more of a deterrent and a lesson for me in encryption and anti-tamper methods.

People have been saying to me, why the extreme, my answer…….why not?

Just wondering now what's the next thing I'm going to move onto/start.

Inline images 1

Generally speaking it will happen in stages, the more you tamper the more it shows, see below.

Before Tampering

Inline images 2

Slight Tampering with external file.

Inline images 3

Major Tampering

Inline images 4

I might even implement a MD5 check that quits the game if you cheat, who knows. 🙂



Copyright ©PJG Developments. All rights reserved.

Posted February 25, 2017 by Paul Green [Editor] in category "!happeningnow