ServerVerificationUtils.php
Table of Contents
Functions
- serverVerificationHash() : int
- This hash function is used by the game client to verify communication with a genuine server during connection initialization.
- _mod() : int
- Performs a modulus operation, considering negative adjustments.
Functions
serverVerificationHash()
This hash function is used by the game client to verify communication with a genuine server during connection initialization.
serverVerificationHash(int $challenge) : int
Parameters
- $challenge : int
-
The challenge value sent by the client. Should be no larger than 11,092,110.
Tags
Return values
int —The hashed challenge value.
_mod()
Performs a modulus operation, considering negative adjustments.
_mod(int $a, int $b) : int
Parameters
- $a : int
-
The dividend.
- $b : int
-
The divisor.
Return values
int —The result of the modulus operation.