2015-02-08 64 views
-1

使用Spring Security BCryptPasswordEncoder可以向密码添加额外的盐吗?使用Spring Security进行密码散列安全

+1

可能是:http://stackoverflow.com/questions/21080777/grails-and-spring-security-salt-value-must-be-null-when-use-with-crypto-module – 2015-02-08 10:29:26

回答

2

你不能在自定义盐中使用Bcrypt算法,因为在这是如何工作的,这就是你不能在这个算法中拥有你自己定制盐的原因。

即使您收到的错误消息也显示相同的内容。如果您想使用自定义盐源进行加密,则应该使用SHA-256或MD5算法。