class BCryptPasswordEncoder extends BasePasswordEncoder
MAX_PASSWORD_LENGTH |
__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. |
Constructor.
Encodes the raw password.
It doesn't work with PHP versions lower than 5.3.7, since the password compat library uses CRYPT_BLOWFISH hash type with the "$2y$" salt prefix (which is not available in the early PHP versions).
Checks a raw password against an encoded password.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.2/Symfony/Component/Security/Core/Encoder/BCryptPasswordEncoder.html