- 删除PayPalService.java和PayPalController.java - 从PaymentMethod枚举中移除PAYPAL选项 - 移除PaymentController和PaymentApiController中的PayPal相关代码 - 移除前端PayPal支付选项和相关API - 清理配置文件中的PayPal配置 - 修复OrderController中的PayPal引用错误
42 lines
659 B
Java
42 lines
659 B
Java
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
|
|
|
|
public class PasswordChecker {
|
|
public static void main(String[] args) {
|
|
BCryptPasswordEncoder encoder = new BCryptPasswordEncoder();
|
|
String hash = "$2a$10$N.zmdr9k7uOCQb376NoUnuTJ8iAt6Z5EHsM8lE9lBOsl7iKTVEFDi";
|
|
|
|
// 测试不同的密码
|
|
String[] passwords = {"demo", "admin", "password", "123456"};
|
|
|
|
for (String password : passwords) {
|
|
boolean matches = encoder.matches(password, hash);
|
|
System.out.println("Password '" + password + "' matches: " + matches);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|