Toggle navigation
Hot Examples
ZH
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
搜索
Home
ManaPHP
Authentication
Password
PHP Class ManaPHP\Authentication\Password
Inheritance:
extends
ManaPHP\Component
,
implements
ManaPHP\Authentication\PasswordInterface
显示文件
Open project: manaphp/manaphp
Public Methods
Method
Description
hash
(
string
$pwd
,
string
$salt
= null ) :
string
salt
(
integer
$length
= 8 ) :
string
generate a salt
verify
(
string
$pwd
,
string
$hash
,
string
$salt
= null ) :
boolean
Method Details
hash()
public
method
public
hash
(
string
$pwd
,
string
$salt
= null ) :
string
$pwd
string
$salt
string
return
string
salt()
public
method
generate a salt
public
salt
(
integer
$length
= 8 ) :
string
$length
integer
return
string
verify()
public
method
public
verify
(
string
$pwd
,
string
$hash
,
string
$salt
= null ) :
boolean
$pwd
string
$hash
string
$salt
string
return
boolean