class PhpassHashedPassword
Same name in this branch
- 10 core/modules/phpass/src/Password/PhpassHashedPassword.php \Drupal\phpass\Password\PhpassHashedPassword
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Password/PhpassHashedPassword.php \Drupal\Core\Password\PhpassHashedPassword
- 8.9.x core/lib/Drupal/Core/Password/PhpassHashedPassword.php \Drupal\Core\Password\PhpassHashedPassword
- 11.x core/modules/phpass/src/Password/PhpassHashedPassword.php \Drupal\phpass\Password\PhpassHashedPassword
- 11.x core/lib/Drupal/Core/Password/PhpassHashedPassword.php \Drupal\Core\Password\PhpassHashedPassword
Deprecated legacy password hashing framework.
Hierarchy
- class \Drupal\Core\Password\PhpassHashedPasswordBase extends \Drupal\Core\Password\PasswordInterface
- class \Drupal\Core\Password\PhpassHashedPassword implements \Drupal\Core\Password\PhpassHashedPasswordBase
Expanded class hierarchy of PhpassHashedPassword
Deprecated
in drupal:10.1.0 and is removed from drupal:11.0.0. The password compatibility service has been moved to the phpass module. Use \Drupal\phpass\Password\PhpassHashedPassword instead.
See also
https://www.drupal.org/node/3322420
1 file declares its use of PhpassHashedPassword
- PasswordHashingLegacyTest.php in core/
tests/ Drupal/ Tests/ Core/ Password/ PasswordHashingLegacyTest.php
File
-
core/
lib/ Drupal/ Core/ Password/ PhpassHashedPassword.php, line 16
Namespace
Drupal\Core\PasswordView source
class PhpassHashedPassword extends PhpassHashedPasswordBase {
}
Members
Title Sort descending | Deprecated | Modifiers | Object type | Summary | Overriden Title | Overrides |
---|---|---|---|---|---|---|
PasswordInterface::PASSWORD_MAX_LENGTH | constant | Maximum password length. | ||||
PhpassHashedPasswordBase::$corePassword | protected | property | The core PHP password interface. | |||
PhpassHashedPasswordBase::$countLog2 | Deprecated | protected | property | Password stretching iteration count. | ||
PhpassHashedPasswordBase::$ITOA64 | public static | property | Returns a string for mapping an int to the corresponding base 64 character. | |||
PhpassHashedPasswordBase::base64Encode | protected | function | Encodes bytes into printable base 64 using the *nix standard from crypt(). | |||
PhpassHashedPasswordBase::check | public | function | Check whether a plain text password matches a hashed password. | Overrides PasswordInterface::check | ||
PhpassHashedPasswordBase::crypt | protected | function | Hash a password using a secure stretched hash. | |||
PhpassHashedPasswordBase::enforceLog2Boundaries | protected | function | Ensures that $count_log2 is within set bounds. | 1 | ||
PhpassHashedPasswordBase::generateSalt | Deprecated | protected | function | Generates a random base 64-encoded salt prefixed with hash settings. | ||
PhpassHashedPasswordBase::getCountLog2 | public | function | Parses the log2 iteration count from a stored hash or setting string. | |||
PhpassHashedPasswordBase::hash | public | function | Hash a password using a secure hash. | Overrides PasswordInterface::hash | ||
PhpassHashedPasswordBase::HASH_LENGTH | constant | The expected (and maximum) number of characters in a hashed password. | ||||
PhpassHashedPasswordBase::MAX_HASH_COUNT | constant | The maximum allowed log2 number of iterations for password stretching. | ||||
PhpassHashedPasswordBase::MIN_HASH_COUNT | constant | The minimum allowed log2 number of iterations for password stretching. | ||||
PhpassHashedPasswordBase::needsRehash | public | function | Check whether a hashed password needs to be replaced with a new hash. | Overrides PasswordInterface::needsRehash | ||
PhpassHashedPasswordBase::__construct | public | function | Constructs a new password hashing instance. | 1 |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.