[ISSUE-#4310] Delete the main function only for testing (#4312)

This commit is contained in:
孙继峰 2020-11-24 13:22:22 +08:00 committed by GitHub
parent 3bf8844992
commit c8d46a6046
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,10 +25,6 @@ import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
*/
public class PasswordEncoderUtil {
public static void main(String[] args) {
System.out.println(new BCryptPasswordEncoder().encode("nacos"));
}
public static Boolean matches(String raw, String encoded) {
return new BCryptPasswordEncoder().matches(raw, encoded);
}