Add gametime support, and other stuff

This commit is contained in:
SilicaAndPina 2020-09-30 01:46:27 +13:00
parent e8e0a0a519
commit c1c3a9ee82
162 changed files with 95566 additions and 596 deletions
WebInterface/master-site

View file

@ -0,0 +1,15 @@
<?php
function hash_salt(string $input, string $salt)
{
$output = hash('sha512',$input,true);
$len=strlen(bin2hex($output))/2;
$xor_hash = "";
for($i = 0; $i < $len; $i++)
{
$xor_hash .= $output[$i] ^ $salt[$i];
}
return hash('sha512',$xor_hash,false);
}
?>