Add files via upload

This commit is contained in:
Bluzume 2020-09-29 14:31:32 +13:00 committed by GitHub
parent d791e43882
commit fc2b0206d6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
46 changed files with 5094 additions and 0 deletions

15
WebInterface/common.php Normal file
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);
}
?>