API - XOOPS 2.5.11 Beta 2
By monxoops.fr
|
Static Public Member Functions | |
static | generateOneTimeToken ($hash='sha512', $bytes=64) |
static | generateKey ($hash='sha512', $bytes=128) |
|
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 |
Exception on insufficient entropy
|
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 |
Exception on insufficient entropy