function PhpPassword::__construct
Same name in other branches
- 11.x core/lib/Drupal/Core/Password/PhpPassword.php \Drupal\Core\Password\PhpPassword::__construct()
Constructs a new password hashing instance.
Parameters
string $algorithm: The hashing algorithm to use. Defaults to PHP default.
array $options: List of options. Refer to password_hash() for available options.
See also
https://www.php.net/password_hash
File
-
core/
lib/ Drupal/ Core/ Password/ PhpPassword.php, line 22
Class
- PhpPassword
- Secure PHP password hashing functions.
Namespace
Drupal\Core\PasswordCode
public function __construct(string $algorithm = PASSWORD_DEFAULT, array $options = []) {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.