File tree 1 file changed +8
-0
lines changed
crypto/src/main/java/org/springframework/security/crypto/password
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 16
16
package org .springframework .security .crypto .password ;
17
17
18
18
/**
19
+ * This {@link PasswordEncoder} is provided for legacy and testing purposes only and is
20
+ * not considered secure.
21
+ *
19
22
* A password encoder that does nothing. Useful for testing where working with plain text
20
23
* passwords may be preferred.
21
24
*
22
25
* @author Keith Donald
26
+ * @deprecated Digest based password encoding is not considered secure. Instead use an
27
+ * adaptive one way funciton like BCryptPasswordEncoder, Pbkdf2PasswordEncoder, or
28
+ * SCryptPasswordEncoder. Even better use {@link DelegatingPasswordEncoder} which supports
29
+ * password upgrades.
23
30
*/
31
+ @ Deprecated
24
32
public final class NoOpPasswordEncoder implements PasswordEncoder {
25
33
26
34
public String encode (CharSequence rawPassword ) {
You can’t perform that action at this time.
0 commit comments