Class

Symfony\Component\Security\Core\Encoder\PlaintextPasswordEncoder

class PlaintextPasswordEncoder extends BasePasswordEncoder

PlaintextPasswordEncoder does not do any encoding.

Constants

MAX_PASSWORD_LENGTH

Methods

__construct(bool $ignorePasswordCase = false)

Constructor.

string encodePassword(string $raw, string $salt)

Encodes the raw password.

bool isPasswordValid(string $encoded, string $raw, string $salt)

Checks a raw password against an encoded password.

Details

at line 30
public __construct(bool $ignorePasswordCase = false)

Constructor.

Parameters

bool $ignorePasswordCase Compare password case-insensitive

at line 38
public string encodePassword(string $raw, string $salt)

Encodes the raw password.

Parameters

string $raw The password to encode
string $salt The salt

Return Value

string The encoded password

at line 50
public bool isPasswordValid(string $encoded, string $raw, string $salt)

Checks a raw password against an encoded password.

Parameters

string $encoded An encoded password
string $raw A raw password
string $salt The salt

Return Value

bool true if the password is valid, false otherwise