class PhpassHashedPassword

Secure password hashing functions based on the Portable PHP password hashing framework.

Hierarchy

Expanded class hierarchy of PhpassHashedPassword

See also

http://www.openwall.com/phpass/

2 files declare their use of PhpassHashedPassword
2 string references to 'PhpassHashedPassword'
2 services use PhpassHashedPassword

File

drupal/core/lib/Drupal/Core/Password/PhpassHashedPassword.php, line 18
Definition of Drupal\Core\Password\PhpassHashedPassword

Namespace

Drupal\Core\Password
View source

Members

Namesort descending Modifiers Type Description Overrides
PhpassHashedPassword::$countLog2 protected property Specifies the number of times the hashing function will be applied when generating new password hashes. The number of times is calculated by raising 2 to the power of the given value.
PhpassHashedPassword::$ITOA64 static property Returns a string for mapping an int to the corresponding base 64 character.
PhpassHashedPassword::base64Encode protected function Encodes bytes into printable base 64 using the *nix standard from crypt().
PhpassHashedPassword::check public function Implements Drupal\Core\Password\PasswordInterface::checkPassword(). Overrides PasswordInterface::check
PhpassHashedPassword::crypt protected function Hash a password using a secure stretched hash.
PhpassHashedPassword::enforceLog2Boundaries protected function Ensures that $count_log2 is within set bounds.
PhpassHashedPassword::generateSalt protected function Generates a random base 64-encoded salt prefixed with settings for the hash.
PhpassHashedPassword::getCountLog2 public function Parse the log2 iteration count from a stored hash or setting string.
PhpassHashedPassword::hash public function Implements Drupal\Core\Password\PasswordInterface::hash(). Overrides PasswordInterface::hash
PhpassHashedPassword::HASH_LENGTH constant The expected (and maximum) number of characters in a hashed password.
PhpassHashedPassword::MAX_HASH_COUNT constant The maximum allowed log2 number of iterations for password stretching.
PhpassHashedPassword::MIN_HASH_COUNT constant The minimum allowed log2 number of iterations for password stretching.
PhpassHashedPassword::userNeedsNewHash public function Implements Drupal\Core\Password\PasswordInterface::userNeedsNewHash(). Overrides PasswordInterface::userNeedsNewHash
PhpassHashedPassword::__construct function Constructs a new phpass password hashing instance.