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 ) ); ?>