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