first commit

This commit is contained in:
Yangtao
2025-11-18 17:48:20 +08:00
commit 6e56cab848
196 changed files with 65809 additions and 0 deletions

19
pkg/tools/strings_test.go Normal file
View File

@ -0,0 +1,19 @@
package tools
import "testing"
func TestMD5(t *testing.T) {
str, salt := "123", "456"
println(MD5(str))
println(MD5(str + salt))
println(MD5WithSalt(str, salt))
}
func TestRandSaltN(t *testing.T) {
for i := 1; i < 10; i++ {
println(RandSalt())
for j := 0; j < 10; j++ {
println(RandSaltN(uint8(i)))
}
}
}