public function PasswordInterface::hash in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Password/PasswordInterface.php \Drupal\Core\Password\PasswordInterface::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.
2 methods override PasswordInterface::hash()
- MigratePassword::hash in core/
modules/ user/ src/ MigratePassword.php - Hash a password using a secure hash.
- PhpassHashedPassword::hash in core/
lib/ Drupal/ Core/ Password/ PhpassHashedPassword.php - Hash a password using a secure hash.
File
- core/
lib/ Drupal/ Core/ Password/ PasswordInterface.php, line 29 - Contains \Drupal\Core\Password\PasswordInterface.
Class
- PasswordInterface
- Secure password hashing functions for user authentication.
Namespace
Drupal\Core\PasswordCode
public function hash($password);