mirror of
https://github.com/islehorse/HISP.git
synced 2025-06-01 03:18:59 +12:00
Add gametime support, and other stuff
This commit is contained in:
parent
e8e0a0a519
commit
c1c3a9ee82
162 changed files with 95566 additions and 596 deletions
WebInterface/master-site
15
WebInterface/master-site/common.php
Normal file
15
WebInterface/master-site/common.php
Normal 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);
|
||||
}
|
||||
?>
|
Loading…
Add table
Add a link
Reference in a new issue