base\Security compareString()

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.

doc_Yii
2016-10-30 16:52:18
Comments
Leave a Comment

Please login to continue.