class PhpassHashedPassword

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

Hierarchy

See also

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

File

core/lib/Drupal/Core/Password/PhpassHashedPassword.php, line 13

Namespace

Drupal\Core\Password

Members

Name Modifiers Type Description
PasswordInterface::PASSWORD_MAX_LENGTH constant Maximum password length.
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 public 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 Check whether a plain text password matches a hashed password. 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 hash settings.
PhpassHashedPassword::getCountLog2 public function Parses the log2 iteration count from a stored hash or setting string.
PhpassHashedPassword::hash public function Hash a password using a secure 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::needsRehash public function Check whether a hashed password needs to be replaced with a new hash. Overrides PasswordInterface::needsRehash
PhpassHashedPassword::__construct function Constructs a new password hashing instance.

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Password!PhpassHashedPassword.php/class/PhpassHashedPassword/8.1.x