Joomla CMS  3.10.11 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.10.11 et du framework Joomla Platform intégré
Tout Structures de données Espaces de nommage Fichiers Fonctions Variables Pages
Référence de l'interface CryptPassword
+ Graphe d'héritage de CryptPassword:

Fonctions membres publiques

 create ($password, $type=null)
 
 verify ($password, $hash)
 
 setDefaultType ($type)
 
 getDefaultType ()
 

Champs de données

const BLOWFISH = '$2y$'
 
const JOOMLA = 'Joomla'
 
const PBKDF = '$pbkdf$'
 
const MD5 = '$1$'
 

Description détaillée

Joomla Platform Password Hashing Interface

Depuis
3.0.1
Obsolète:
4.0 Use PHP 5.5's native password hashing API

Documentation des fonctions membres

◆ create()

create (   $password,
  $type = null 
)

Creates a password hash

Paramètres
string$passwordThe password to hash.
string$typeThe type of hash. This determines the prefix of the hashing function.
Renvoie
string The hashed password.
Depuis
3.0.1
Obsolète:
4.0 Use PHP 5.5's native password hashing API

Implémenté dans SimpleCryptPassword.

◆ getDefaultType()

getDefaultType ( )

Gets the default type

Renvoie
void
Depuis
3.1.4
Obsolète:
4.0 Use PHP 5.5's native password hashing API

Implémenté dans SimpleCryptPassword.

◆ setDefaultType()

setDefaultType (   $type)

Sets a default prefix

Paramètres
string$typeThe prefix to set as default
Renvoie
void
Depuis
3.1.4
Obsolète:
4.0 Use PHP 5.5's native password hashing API

Implémenté dans SimpleCryptPassword.

◆ verify()

verify (   $password,
  $hash 
)

Verifies a password hash

Paramètres
string$passwordThe password to verify.
string$hashThe password hash to check.
Renvoie
boolean True if the password is valid, false otherwise.
Depuis
3.0.1
Obsolète:
4.0 Use PHP 5.5's native password hashing API

Implémenté dans SimpleCryptPassword.

Documentation des champs

◆ BLOWFISH

const BLOWFISH = '$2y$'

Référencé par SimpleCryptPassword\create().

◆ JOOMLA

const JOOMLA = 'Joomla'

Référencé par SimpleCryptPassword\create().

◆ MD5

const MD5 = '$1$'

Référencé par SimpleCryptPassword\create().

◆ PBKDF

const PBKDF = '$pbkdf$'

La documentation de cette interface a été générée à partir du fichier suivant :