# PasswordEncoder Spring Security 的 Servlet 支持通过集成[`PasswordEncoder`](.../../Features/Authentication/Password-Storage.html#Authentication-Password-Storage)来安全地存储密码。自定义 Spring Security 使用的`PasswordEncoder`实现可以通过[公开`PasswordEncoder` Bean](.../.../Features/Authentication/password-storage.html#Authentication-password-storage-configuration)来完成。 [UserDetailsService ](user-details-service.html)[DAoAuthenticationProvider ](dao-authentication-provider.html)