![]() |
TYPO3
7.6
|
Public Member Functions | |
checkPassword ($plainPW, $saltedHashPW) | |
getSaltLength () | |
isAvailable () | |
getHashedPassword ($password, $salt=null) | |
isHashUpdateNeeded ($passString) | |
isValidSalt ($salt) | |
isValidSaltedPW ($saltedPW) | |
Interface with public methods needed to be implemented in a salting hashing class.
Definition at line 21 of file SaltInterface.php.
checkPassword | ( | $plainPW, | |
$saltedHashPW | |||
) |
Method checks if a given plaintext password is correct by comparing it with a given salted hashed password.
string | $plainPW | plain-text password to compare with salted hash |
string | $saltedHashPW | Salted hash to compare plain-text password with |
Implemented in PhpassSalt, and Md5Salt.
getHashedPassword | ( | $password, | |
$salt = null |
|||
) |
Method creates a salted hash for a given plaintext password
string | $password | Plaintext password to create a salted hash from |
string | $salt | Optional custom salt to use |
Implemented in PhpassSalt, and Md5Salt.
getSaltLength | ( | ) |
Returns length of required salt.
Implemented in PhpassSalt, BlowfishSalt, and Md5Salt.
isAvailable | ( | ) |
Returns whether all prequesites for the hashing methods are matched
Implemented in BlowfishSalt, Md5Salt, and PhpassSalt.
isHashUpdateNeeded | ( | $passString | ) |
Checks whether a user's hashed password needs to be replaced with a new hash.
This is typically called during the login process when the plain text password is available. A new hash is needed when the desired iteration count has changed through a change in the variable $hashCount or HASH_COUNT or if the user's password hash was generated in an bulk update with class ext_update.
string | $passString | Salted hash to check if it needs an update |
Implemented in PhpassSalt, BlowfishSalt, and Md5Salt.
isValidSalt | ( | $salt | ) |
Method determines if a given string is a valid salt
string | $salt | String to check |
Implemented in PhpassSalt, BlowfishSalt, and Md5Salt.
isValidSaltedPW | ( | $saltedPW | ) |
Method determines if a given string is a valid salted hashed password.
string | $saltedPW | String to check |
Implemented in PhpassSalt, BlowfishSalt, and Md5Salt.