Spring Boot & Microservices (50 Qs)•Part 3: Microservices, Distributed Systems & Observability (25 - 35)
How does Password Hashing work with BCrypt in Spring Security?
senior LevelSecurity & AuthSystem DesignMicroservices
In Simple Words:
Never store plaintext or plain MD5/SHA256 hashes:
BCryptPasswordEncoder uses a slow, adaptive hashing algorithm that automatically generates a random cryptographic salt and incorporates a configurable work factor (cost parameter, default 10 = 1024 iterations). It is resistant to rainbow table and brute-force GPU attacks.