function PhpPassword::needsRehash

Same name and namespace in other branches
  1. 10 core/lib/Drupal/Core/Password/PhpPassword.php \Drupal\Core\Password\PhpPassword::needsRehash()

Overrides PasswordInterface::needsRehash

File

core/lib/Drupal/Core/Password/PhpPassword.php, line 59

Class

PhpPassword
Secure PHP password hashing functions.

Namespace

Drupal\Core\Password

Code

public function needsRehash($hash) {
    return password_needs_rehash($hash, $this->algorithm, $this->options);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.