I figured out Symfony 4.4 uses Libsodium (Sodium) as encoding method for passwords and falls back on Bcrypt when Sodium is not installed.
Is Sodium better than Bcrypt?
If so, why is it better? What is the difference?
I figured out Symfony 4.4 uses Libsodium (Sodium) as encoding method for passwords and falls back on Bcrypt when Sodium is not installed.
Is Sodium better than Bcrypt?
If so, why is it better? What is the difference?
Copyright © 2021 Jogjafile Inc.
I'm fairly new to password hashers as well, and I was wondering something similar myself, so here's what I found.
The documentation states the following:
So then it actually boils down to Argon2 vs Bcrypt.
Well here's an explanation (2018) on why you should use Argon2.
That being said, starting from Symfony 5.3, the "auto" password hasher is Bcrypt.
So you might think, why did they choose Bcrypt? Well if you check out this PR, it links to this tweet (2019), stating the following concerning Argon2:
I assume they (those who reviewed PR and claim) think this statement/person is credible, BUT it is argued if the statement is actually correct and if there's any evidence to back up this claim. So for more information you can look at this thread (2021).
After reading through all of the above, I'd stick to Bcrypt for now.