package main

import (
	"fmt"
	"log"

	"golang.org/x/crypto/bcrypt"
)

func main() {
	password := "Admin123!@#"
	
	// 生成bcrypt哈希
	hashedPassword, err := bcrypt.GenerateFromPassword([]byte(password), bcrypt.DefaultCost)
	if err != nil {
		log.Fatal("密码哈希生成失败:", err)
	}
	
	fmt.Printf("密码: %s\n", password)
	fmt.Printf("哈希: %s\n", string(hashedPassword))
	fmt.Println("哈希长度:", len(string(hashedPassword)))
}