XOOPS API 2.5.11 Beta1  UI v0.5
Réalisé par monxoops.fr
Tout Structures de données Espaces de nommage Fichiers Fonctions Variables Pages
Référence de la classe Random

Fonctions membres publiques statiques

static generateOneTimeToken ($hash='sha512', $bytes=64)
 
static generateKey ($hash='sha512', $bytes=128)
 

Documentation des fonctions membres

◆ 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$hashhash function to use
integer$bytesthe number of random bytes to generate
Renvoie
string hashed token
Exceptions
+ Voici le graphe des appelants de cette fonction :

◆ 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$hashhash function to use
integer$bytesthe 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 :