Page 1 of 1

php url encryption-ish

PostPosted: Thu Nov 03, 2011 12:59 am
by Fojam
so a bunch of people from my school have been testing out my game, and each time they play, it opens a url to submit their score to an online scoretable.
the only problem is, someone has already found out how to manipulate the url to add fake scores.
my question is: how can i get the url to look like something crazy and uninterpretable, but will still be interpreted by the php for what it is?

there are 2 feilds. there is the nn feild which is for name, and there is the ns feild which is for score. i want the name and score to still submit, but look like something crazy and weird in the url so nobody can add their own fake scores.

can anyone help me here?

Re: php url encryption-ish

PostPosted: Sat Nov 05, 2011 1:05 pm
by savvy
use a basic encryption algorithm, for example change letters to numbers then do some obscure sum to it for the url, then on the other side use the same sum in reverse to get the names/scores back! the only way they could make an exact score is by knowing the sum you used.

savvy

Re: php url encryption-ish

PostPosted: Sat Nov 05, 2011 2:17 pm
by jimmynewguy
google php encryption and read :) that'd be the best way over us telling you how. Then we might be able to decrypt your encryption and ruin your game! Just kidding, but that is what I would recommend doing, I don't think many people here know php.