[ISSUE-#4310] Delete the main function only for testing (#4312)
This commit is contained in:
parent
3bf8844992
commit
c8d46a6046
@ -25,10 +25,6 @@ import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
|
|||||||
*/
|
*/
|
||||||
public class PasswordEncoderUtil {
|
public class PasswordEncoderUtil {
|
||||||
|
|
||||||
public static void main(String[] args) {
|
|
||||||
System.out.println(new BCryptPasswordEncoder().encode("nacos"));
|
|
||||||
}
|
|
||||||
|
|
||||||
public static Boolean matches(String raw, String encoded) {
|
public static Boolean matches(String raw, String encoded) {
|
||||||
return new BCryptPasswordEncoder().matches(raw, encoded);
|
return new BCryptPasswordEncoder().matches(raw, encoded);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user