◆ generateKey()
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.
- Paramètres
-
string | $hash | hash function to use |
integer | $bytes | the number of random bytes to generate |
- Renvoie
- string hashed token
- Exceptions
-
◆ generateOneTimeToken()
static generateOneTimeToken |
( |
|
$hash = 'sha512' , |
|
|
|
$bytes = 64 |
|
) |
| |
|
static |
Create a one time token
Generates a low strength random number of size $bytes and hash with the algorithm specified in $hash.
- Paramètres
-
string | $hash | hash function to use |
integer | $bytes | the number of random bit to generate |
- Renvoie
- string hashed token
- Exceptions
-
La documentation de cette classe a été générée à partir du fichier suivant :
- XoopsCore25-2.5.11-Beta1/htdocs/class/libraries/vendor/xoops/xmf/src/Random.php