JCrypt::timingSafeCompare
A timing safe comparison method. This defeats hacking attempts that use timing based attack vectors.
Signature
public function timingSafeCompare(string
$known,
string
$unknown )
Parameters
-
$known
- A known string to check against.
-
$unknown
- An unknown string to check.
Returns
- boolean
- True if the two strings are exactly the same.