ldap-1-backend/public/tools/util_test.go

15 lines
305 B
Go
Raw Normal View History

2022-05-18 17:57:03 +08:00
package tools
import (
"fmt"
"testing"
)
func TestGenPass(t *testing.T) {
fmt.Printf("密码为:%s\n", NewGenPasswd("123456"))
// err := ComparePasswd("$2a$10$Fy8p0nCixgWKzLfO3SgdhOzAF7YolSt6dHj6QidDGYlzLJDpniXB6", "123456")
// if err != nil {
// fmt.Printf("密码错误:%s\n", err)
// }
}