· 9 years ago · Jan 02, 2017, 10:41 PM
1$realHash = md5($_GET['name'] . $_GET['score'] . $secretKey);
2 if($realHash == suppliedhash){
3
4var hash=Md5.Md5Sum(name + score + secretKey);
5
6string hash = MD5Test.Md5Sum(name + score + secretKey);
7
8$secretKey = "mySecretKey"; // Change this value to match the value
9 //stored in the client javascript below
10
11 $realHash = md5($_GET['name'] . $_GET['score'] . $secretKey);
12 if($realHash == $hash) {
13 //interact with database
14 }