intermediatePassword Security: Encoding, Encryption & Hashing

What does CompromisedPasswordChecker protect against that PasswordEncoder doesn't?

PasswordEncoder only handles safely STORING and VERIFYING a password; it says nothing about whether the chosen password is inherently weak or already known to attackers. CompromisedPasswordChecker checks a candidate password (at registration/change time) against known breached-password datasets (via k-anonymity so the raw password isn't transmitted), letting you reject passwords like 'password123' even though they'd hash and store 'successfully' otherwise.

This is a Pro chapter

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

What does CompromisedPasswordChecker protect against that PasswordEncoder doesn't?

Next Step

Continue to When would you write a custom AuthenticationProvider instead of relying on DaoAuthenticationProvider?← Back to all Spring Security questions