package top.tqx.demo_1.util;

import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

public class PasswordGenerator {
    public static void main(String[] args) {
        BCryptPasswordEncoder encoder = new BCryptPasswordEncoder();

        String adminPassword = encoder.encode("admin123456");
        String testPassword = encoder.encode("123456");

        System.out.println("=== BCrypt 密码哈希值 ===");
        System.out.println("admin123456: " + adminPassword);
        System.out.println("123456: " + testPassword);
        System.out.println("========================");
    }
}
