class PhpassHashedPassword

Same name in this branch
  1. 10 core/lib/Drupal/Core/Password/PhpassHashedPassword.php \Drupal\Core\Password\PhpassHashedPassword
Same name and namespace in other branches
  1. 11.x core/modules/phpass/src/Password/PhpassHashedPassword.php \Drupal\phpass\Password\PhpassHashedPassword
  2. 9 core/lib/Drupal/Core/Password/PhpassHashedPassword.php \Drupal\Core\Password\PhpassHashedPassword
  3. 8.9.x core/lib/Drupal/Core/Password/PhpassHashedPassword.php \Drupal\Core\Password\PhpassHashedPassword

Legacy password hashing framework.

Hierarchy

Expanded class hierarchy of PhpassHashedPassword

See also

https://www.drupal.org/node/3322420

2 files declare their use of PhpassHashedPassword
LegacyPasswordHashingTest.php in core/modules/phpass/tests/src/Unit/LegacyPasswordHashingTest.php
PasswordVerifyTest.php in core/modules/phpass/tests/src/Unit/PasswordVerifyTest.php
1 string reference to 'PhpassHashedPassword'
phpass.services.yml in core/modules/phpass/phpass.services.yml
core/modules/phpass/phpass.services.yml
1 service uses PhpassHashedPassword
phpass.password in core/modules/phpass/phpass.services.yml
Drupal\phpass\Password\PhpassHashedPassword

File

core/modules/phpass/src/Password/PhpassHashedPassword.php, line 12

Namespace

Drupal\phpass\Password
View 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.