mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-23 13:15:53 +12:00
Rewrite alot of how game & master site are handled (note in current state its impossible to make an account.)
This commit is contained in:
parent
1ad0783f8f
commit
c12399dc0e
23 changed files with 548 additions and 888 deletions
15
WebInterface/game-site/web/admin/common.php
Normal file
15
WebInterface/game-site/web/admin/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