Toggle navigation
Hot Examples
ES
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Buscar
Inicio
ManaPHP
Authentication
PasswordInterface
PHP Interface ManaPHP\Authentication\PasswordInterface
Mostrar archivo
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