Symfony\Component\Security\Core\Encoder\BCryptPasswordEncoder::encodePassword
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).
Signature
public function encodePassword(string
$raw,
string
$salt )
Parameters
$raw
— string- The password to encode
$salt
— string- The salt
Returns
- string
- The encoded password