compareString() public method
Performs string comparison using timing attack resistant approach.
See also http://codereview.stackexchange.com/questions/13512.
public boolean compareString ( $expected, $actual ) | ||
---|---|---|
$expected | string |
String to compare. |
$actual | string |
User-supplied string. |
return | boolean |
Whether strings are equal. |
Please login to continue.