SHA2 vs SHA3 vs PBKDF2 vs bcrypt vs SCrypt vs Argon2: Which to choose for password storage?
Which one to choose for saving your password?
Old-fashioned hash functions, such as MD5 or SHA1, are nowadays unsuitable for most purposes.
However, there is still a plethora of modern options, such as SHA2, SHA3, PBKDF2, bcrypt, SCrypt, and Argon2. Which one of these should be chosen for storing the application's password?
We can start by dropping SHA2 and SHA3 hashing functions. They are designed to be a fast and efficient hashing function, not specifically for protecting passwords.
Functions like PBKDF2, bcrypt, SCrypt, and Argon2, however, offer solutions for secure password storage, but there are still differences in performance, security, and suitability for various use cases. Let's compare these four algorithms.
Learn to hack — start here
Hundreds of interactive courses, virtual labs and CTF challenges in your browser. Start a free trial — no card required.