intermediatePassword Security: Encoding, Encryption & Hashing

What's wrong with using plain SHA-256 to hash passwords?

SHA-256 is a fast, general-purpose hash designed for data integrity (checksums), not for password storage. Its speed is a liability here — modern GPUs can compute billions of SHA-256 hashes per second, making brute-force and dictionary attacks against leaked hashes fast and cheap. Purpose-built password hashes like BCrypt/Argon2 are deliberately slow and often memory-hard, making large-scale cracking far more expensive.

This is a Pro chapter

Sign in, then upgrade to Pro or Power to unlock this and the full Spring Ecosystem Mastery library.

What's wrong with using plain SHA-256 to hash passwords?

Next Step

Continue to What problem does a salt solve, and how does BCryptPasswordEncoder handle it?← Back to all Spring Security questions