PHPassHandler
实现 HandlerInterface, CheckIfRehashNeededHandlerInterface用于 PHPass 散列密码的密码处理程序
                                                已弃用            
                    | 自 | 4.0.0 | 
|---|---|
| 已弃用 | 4.0 将在 6.0 中移除 对 PHPass 散列密码的支持将被移除,不再提供替代方案 | 
| 包 | Joomla CMS | 
方法
checkIfRehashNeeded
检查密码是否需要重新散列
checkIfRehashNeeded( hash) :
| 自 | 4.0.0 | 
|---|
参数
- hash
- string要检查的密码散列
响应
bool
getPasswordHash
获取 PasswordHash 类的实例
getPasswordHash() : \PasswordHash
| 自 | 4.0.0 | 
|---|
响应
PasswordHash
hashPassword
为明文密码生成散列
hashPassword( plaintext, mixed||string|int options = []) :
| 自 | 4.0.0 | 
|---|
参数
- plaintext
- string要验证的明文密码
- options
- array<string|int, mixed>散列操作的选项
响应
string
isSupported
检查密码处理程序是否在当前环境中受支持
isSupported() :
                        static                                                        
    
    
| 自 | 4.0.0 | 
|---|
响应
bool
validatePassword
验证密码
validatePassword( plaintext, hashed) :
| 自 | 4.0.0 | 
|---|
参数
- plaintext
- string要验证的明文密码
- hashed
- string要验证的密码散列
响应
bool