BCryptPasswordEncoder

BCryptPasswordEncoder

class BCryptPasswordEncoder extends BasePasswordEncoder

Constants

MAX_PASSWORD_LENGTH

Methods

__construct(int $cost)

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