mylomen-server/service/user_test.go

19 lines
238 B
Go
Raw Normal View History

2023-06-04 22:54:54 +08:00
package service
import (
"crypto/sha256"
"encoding/hex"
"fmt"
"testing"
)
func Test1(t *testing.T) {
h := sha256.Sum256([]byte("123"))
passHash := hex.EncodeToString(h[:])
fmt.Print(passHash)
}
2024-09-30 22:49:21 +08:00
func TestLogin(t *testing.T) {
}