This commit is contained in:
2018-04-29 21:34:47 -04:00
parent 732065c7b5
commit d8d248672b
23 changed files with 5940 additions and 114 deletions

View File

@@ -0,0 +1,28 @@
<?php
$userName = $_GET("username");
$password = $_GET("password");
$id = $username . $date->getTimestamp();
$returnData = array();
$date = new DateTime();
$passwordSalt = "sexfamemoney$U046qKlL$moneyfamesex";
$hashedPassword = crypt( $password, $passwordSalt );
$hashedId = crypt( $id, $passwordSalt );
/*
For login:
if (hash_equals($hashed_password, crypt($user_input, $hashed_password))) {
echo "Password verified!";
}
*/
$returnData["password"] = $hashed_password;
$returnData["id"] = $hashedId;
echo( json_encode( $returnData ) );
?>