EC-CUBE4 APIドキュメント

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

Methods

setAuthMagic()

Set Auth Magic.

public setAuthMagic( $authMagic : ) : mixed
Parameters
$authMagic :
Return values
mixed

isPasswordValid()

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
Return values
string

Search results