mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-08 03:00:26 +08:00
增加用户身份认证相关接口
This commit is contained in:
16
internal/utils/sha1_test.go
Normal file
16
internal/utils/sha1_test.go
Normal 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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user