增加用户身份认证相关接口

This commit is contained in:
GoEdgeLab
2022-07-17 11:00:14 +08:00
parent 0e12740fd0
commit a2f8cf09a9
12 changed files with 529 additions and 9 deletions

View File

@@ -0,0 +1,16 @@
// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved. Official site: https://goedge.cn .
package utils_test
import (
"github.com/TeaOSLab/EdgeAPI/internal/utils"
"github.com/iwind/TeaGo/types"
"testing"
)
func TestSha1Random(t *testing.T) {
for i := 0; i < 10; i++ {
var s = utils.Sha1RandomString()
t.Log("["+types.String(len(s))+"]", s)
}
}