beginnerSpring Security

What is PasswordEncoder? Why must you never store plain-text passwords?

PasswordEncoder hashes passwords before storage and verifies them on login without ever storing or comparing plain text. Default is BCryptPasswordEncoder (deliberately slow, adaptive cost factor); DelegatingPasswordEncoder's {bcrypt} prefix supports multiple algorithms. Never use NoOpPasswordEncoder in production.

This is a Pro question

Sign in, then upgrade to Pro or Power to unlock this question and the full Interview Prep bank.

What is PasswordEncoder? Why must you never store plain-text passwords?

Next Step

Continue to Where should you store JWT tokens on the client side? What are the security tradeoffs?← Back to all Spring Boot & Microservices questions