function PhpassHashedPasswordBase::hash
Same name and namespace in other branches
- 10 core/lib/Drupal/Core/Password/PhpassHashedPasswordBase.php \Drupal\Core\Password\PhpassHashedPasswordBase::hash()
Hash a password using a secure hash.
Parameters
string $password: A plain-text password.
Return value
string A string containing the hashed password, or FALSE on failure.
Overrides PasswordInterface::hash
File
-
core/
lib/ Drupal/ Core/ Password/ PhpassHashedPasswordBase.php, line 185
Class
- PhpassHashedPasswordBase
- Legacy password hashing framework.
Namespace
Drupal\Core\PasswordCode
public function hash(#[\SensitiveParameter] $password) {
return $this->corePassword
->hash($password);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.