✨ init project
This commit is contained in:
14
test/pwd_test.go
Normal file
14
test/pwd_test.go
Normal 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)
|
||||
}
|
Reference in New Issue
Block a user