Class Security
Helper functions for security-related things.
public static
boolean
|
#
stringEquals( string $a, string $b )
A string equality function that compares strings in a way that isn't suceptible to timing attacks. An attacker can figure out the length of the string, but not the string's value. |
public static
string
|
#
getRandomBytes( integer $numBytes )
Returns cryptographically strong secure random bytes (as a PHP string). |