feat: 初始化路由组

This commit is contained in:
Blizzard
2025-04-26 22:41:16 +08:00
parent 5e41df7dc2
commit 77405783c6
17 changed files with 264 additions and 5 deletions
+14
View File
@@ -0,0 +1,14 @@
package utils
import (
"fmt"
"testing"
)
func TestHashPwd(t *testing.T) {
hash := BcryptHash("admin")
fmt.Println(hash) // $2a$10$QC/zkQ/ohPmvjF/goDyicu7cHgAEj8gHg6OTDHWhbYQMHHn4dwxX2
check := BcryptCheck("admin", "$2a$10$QC/zkQ/ohPmvjF/goDyicu7cHgAEj8gHg6OTDHWhbYQMHHn4dwxX2")
fmt.Println(check)
}