# PasswordEncoder Spring Security’s servlet support storing passwords securely by integrating with [`PasswordEncoder`](../../../features/authentication/password-storage.html#authentication-password-storage). Customizing the `PasswordEncoder` implementation used by Spring Security can be done by [exposing a `PasswordEncoder` Bean](../../../features/authentication/password-storage.html#authentication-password-storage-configuration). [UserDetailsService](user-details-service.html)[DaoAuthenticationProvider](dao-authentication-provider.html)