博文

目前显示的是标签为“md5”的博文

Spring Password Encoding

Password Encoding A hash in with the spring-security-core jar           String s = "test";           org.springframework.security.authentication.encoding.Md5PasswordEncoder md5e =             new org.springframework.security.authentication.encoding.Md5PasswordEncoder();         System.out.println("md5e.encodePassword(s, null):" +                            md5e.encodePassword(s, null)); A hash with Salt added  The StandardPasswordEncoder in the crypto package uses a random 8-byte salt, which is stored in the same field as the password.          org.springframework.security.crypto.password.StandardPasswordEncoder S...