Class PasswordHashStrategy
category |
System |
---|---|
package |
Authentication |
subpackage |
Strategies |
getHash(\StringType $password) : string
Throws |
|
---|
string
Resulting hash.
getRehashedPassword(\StringType $password, \NonEmptyStringType $hash, \AuthStrategyCollection|null $alternativeAlgorithmCollection = null) : string
\AuthStrategyCollection|null
Collection of alternative hashing algorithms.
string
The new password hash.
verify(\StringType $password, \NonEmptyStringType $hash, \AuthStrategyCollection $alternativeAlgorithmCollection = null) : boolean
\AuthStrategyCollection
Collection of alternative hashing algorithms.
boolean
Returns true if $password matches $hash, false otherwise.