first commit

This commit is contained in:
2026-02-17 13:06:23 +08:00
commit 7cbd3d061d
349 changed files with 126558 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
package lib
import (
"crypto/md5"
"encoding/hex"
)
func MD5ToLower(str string) string {
h := md5.New()
h.Write([]byte(str))
return hex.EncodeToString(h.Sum(nil))
}
func Md5Hash(data []byte) []byte {
h := md5.New()
h.Write(data)
return h.Sum(nil)
}