PasswordEncoder implements PasswordEncoderInterface
Table of Contents
$auth_magic | string | |
---|---|---|
$auth_type | string | |
$password_hash_algos | string | |
__construct() | mixed | |
setAuthMagic() | Set Auth Magic. | mixed |
isPasswordValid() | Checks a raw password against an encoded password. | bool |
encodePassword() | Encodes the raw password. | string |
createSalt() | saltを生成する. | string |
Properties
$auth_magic
public
string
$auth_magic
$auth_type
public
string
$auth_type
$password_hash_algos
public
string
$password_hash_algos
Methods
__construct()
public
__construct(
$eccubeConfig :
EccubeConfig
)
: mixed
Parameters
- $eccubeConfig : EccubeConfig
Return values
mixedsetAuthMagic()
Set Auth Magic.
public
setAuthMagic(
$authMagic :
)
: mixed
Parameters
Return values
mixedisPasswordValid()
Checks a raw password against an encoded password.
public
isPasswordValid(
$encoded :
string
, $raw :
string
, $salt :
string
)
: bool
Parameters
- $encoded : string
An encoded password
- $raw : string
A raw password
- $salt : string
The salt
Return values
bool —true if the password is valid, false otherwise
encodePassword()
Encodes the raw password.
public
encodePassword(
$raw :
string
, $salt :
string
)
: string
Parameters
- $raw : string
The password to encode
- $salt : string
The salt
Return values
string —The encoded password
createSalt()
saltを生成する.
public
createSalt(
[ $length :
int
= 5 ]
)
: string
Parameters
- $length : int = 5