pbkdf2() публичный Метод

Implements HKDF2 specified in RFC 2898 Recommend use one of the SHA-2 hash algorithms: sha224, sha256, sha384 or sha512.
public pbkdf2 ( string $algo, string $password, string $salt, integer $iterations, integer $length ) : string
$algo string a hash algorithm supported by `hash_hmac()`, e.g. 'SHA-256'
$password string the source password
$salt string the random salt
$iterations integer the number of iterations of the hash algorithm. Set as high as possible to hinder dictionary password attacks.
$length integer length of the output key in bytes. If 0, the output key is the length of the hash algorithm output.
Результат string the derived key
Пример #1
0
 /**
  * @inheritdoc
  */
 public function pbkdf2($algo, $password, $salt, $iterations, $length = 0)
 {
     return parent::pbkdf2($algo, $password, $salt, $iterations, $length);
 }