XOOPS
2.6.0
|
Static Public Member Functions | |
static | generateKey ($hash= 'sha512', $bytes=128) |
static | generateOneTimeToken ($hash= 'sha512', $bytes=64) |
Definition at line 28 of file Random.php.
|
static |
Create a medium strength key
Generates a medium strength random number of size $bytes and hash with the algorithm specified in $hash.
string | $hash | hash function to use |
integer | $bytes | the number of random bytes to generate |
Definition at line 60 of file Random.php.
Referenced by Xoops\Core\Session\RememberMe\getNewSeries().
|
static |
Create a one time token
Generates a low strength random number of size $bytes and hash with the algorithm specified in $hash.
string | $hash | hash function to use |
integer | $bytes | the number of random bit to generate |
Definition at line 41 of file Random.php.
Referenced by Xoops\Core\Security\createToken(), and Xoops\Core\Session\RememberMe\getNewToken().