by alexjeffrey · 13y ago · 0 comments
Good example of a flaw mitigated by NaCL: the CBC padding oracle attack.
† Caveat: no I don't
1. Password-based key derivation
2. Persistent key storage
So developers are still expected to work out those 2 problems and will reliably screw them up.The right ordering is scrypt, bcrypt, PBKDF2, but even if you choose PBKDF2 you're still worlds better than salted hashes.
It makes sense for NaCL/Sodium to just pick one, though, and it makes sense for the choice to come from the hash contest.