How to use new PasswordEncoder from Spring Security

前端 未结 4 961
走了就别回头了
走了就别回头了 2020-12-01 01:16

As of Spring Security 3.1.4.RELEASE, the old org.springframework.security.authentication.encoding.PasswordEncoder has been deprecated in favour of org.spr

4条回答
  •  情歌与酒
    2020-12-01 01:54

    Having just gone round the internet to read up on this and the options in Spring I'd second Luke's answer, use BCrypt (it's mentioned in the source code at Spring).

    The best resource I found to explain why to hash/salt and why use BCrypt is a good choice is here: Salted Password Hashing - Doing it Right.

提交回复
热议问题