Hello symfony community. I don't understand why in BCryptPasswordEncoder don't use salt. Please can you give answer for this question, because security in my application is very important for me
if ($salt) {
// Ignore $salt, the auto-generated one is always the best
}
The reason is that Bcrypt includes its own auto-generated salt. Besides, the salt is deprecated since PHP 7.0, as explained here: http://php.net/manual/en/function.password-hash.php
Okay. Sorry for my incompetence. Thank you
@FRAGnatt pelase don't say that. There's no incompetence at all. Your question is completely legit. I wondered the exact same thing when I saw Bcrypt for the first time :smile:
Most helpful comment
@FRAGnatt pelase don't say that. There's no incompetence at all. Your question is completely legit. I wondered the exact same thing when I saw Bcrypt for the first time :smile: