Jump to content

Preventing Code Tampering


Recommended Posts

  • Administrators

Basically, there's next to no way to prevent this. Because people can run your code in a debugger and circumvent the code that checks if it's been tampered. They can also make the code feed the right values to your server no matter what.

So when you're making a client that interacts with a server, you should plan it so that the server does not trust a single piece of information that is passed to it without checking it. And make it so that the server takes these pieces and does all the calculations and database writes.

Link to post
Share on other sites
  • Administrators

If you want to make sure that the files are unmodified, it's best to calculate check sums of them and compare to values that you store in your app. Smart RTL does not have native function for this but searching for javascript md5 gives lots of options.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...