Spring 弹簧密码编码器

Spring 弹簧密码编码器,spring,password-encryption,Spring,Password Encryption,我想使用新的界面: org.springframework.security.crypto.password.PasswordEncoder; 与其不推荐,不如: org.springframework.security.authentication.encoding.PasswordEncoder; 但未弃用的ShaPasswordEncoder不满足作为autowire bean的要求(即不支持此新接口的方法) 有没有其他的或新的课程?似乎有三种实现,SHA只有256而不是ShaPass

我想使用新的界面:

org.springframework.security.crypto.password.PasswordEncoder;
与其不推荐,不如:

org.springframework.security.authentication.encoding.PasswordEncoder;
但未弃用的ShaPasswordEncoder不满足作为autowire bean的要求(即不支持此新接口的方法)

有没有其他的或新的课程?似乎有三种实现,SHA只有256而不是ShaPasswordEncoder提供的512


或者我只是直接注入类?

我会使用BCryptPasswordEncoder,请参见

org.springframework.security.authentication.encoding.ShaPasswordEncoder;