Brilliant, easy enough for me to figure out.
So for anyone who stumbles across this thread. Here is what I did to make this work properly.
- Get the plugin CBHash for C3.
- Set a key somewhere in your project. I set it as a instance variable on a random object that I will remember. The key Example is RandomObject.key (which would be 1234567890 if you looked at the variable)
- Event -> CBHash -> Hash PlayerName&RandomObject.key (Hexadecimal)
- Event -> System -> Set Variable1 to CBHash.get_lastResult
- Event -> Ajax -> Request "https://somedomain.com/somefile.php?name=PlayerName&hash=Variable1
Then in your PHP File it would work like this. Could be GET, REQUEST, or POST I assume.
$player = $_REQUEST['name'];
$hashed = $_REQUEST['hash'];
$key = '1234567890'; //<--- Nobody should see this since its in php.
$str = $player . $key;
if (md5($str) === $hashed) {
//Do something here
}