Symfony\Component\Security\Core\Util\StringUtils::equals
Compares two strings.
This method implements a constant-time algorithm to compare strings.
Signature
public function equals(string
$knownString,
string
$userInput )
Parameters
$knownString
— string- The string of known length to compare against
$userInput
— string- The string that the user can control
Returns
- Boolean
- true if the two strings are the same, false otherwise