init project

This commit is contained in:
2023-04-24 17:19:41 +08:00
parent 84729ebb66
commit cdb5a4f9cd
51 changed files with 3328 additions and 1 deletions

14
test/pwd_test.go Normal file
View File

@@ -0,0 +1,14 @@
package test
import (
"fmt"
"golang.org/x/crypto/bcrypt"
"testing"
)
func TestPwd(t *testing.T) {
bytePass := []byte("123123")
hPass, _ := bcrypt.GenerateFromPassword(bytePass, bcrypt.DefaultCost)
s := string(hPass)
fmt.Println(s)
}