class MessageDigestPasswordEncoder extends BasePasswordEncoder
MessageDigestPasswordEncoder uses a message digest algorithm.
Constants
MAX_PASSWORD_LENGTH |
Methods
__construct(string $algorithm = 'sha512', bool $encodeHashAsBase64 = true, int $iterations = 5000) 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
__construct(string $algorithm = 'sha512', bool $encodeHashAsBase64 = true, int $iterations = 5000)
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.
Please login to continue.