package com.reading.platform.util;

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

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

        System.out.println("=== BCrypt Password Hashes ===");
        System.out.println("admin123: " + encoder.encode("admin123"));
        System.out.println("123456: " + encoder.encode("123456"));
        System.out.println("");
        System.out.println("Note: Each time you run this, a different hash is generated.");
        System.out.println("All hashes will work for the same password.");
    }
}
