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