class MessageDigestPasswordEncoder extends BasePasswordEncoder
MessageDigestPasswordEncoder uses a message digest algorithm.
MAX_PASSWORD_LENGTH |
__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. |
Constructor.
Encodes the raw password.
Checks a raw password against an encoded password.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Component/Security/Core/Encoder/MessageDigestPasswordEncoder.html