This commit is contained in:
2024-08-02 14:19:57 +08:00
parent c178e1672b
commit 527c7aa372
18 changed files with 904 additions and 0 deletions

12
core/md5.go Normal file
View File

@@ -0,0 +1,12 @@
package core
import (
"crypto/md5"
"encoding/hex"
)
func Md5(str string) string {
_md5 := md5.New()
_md5.Write([]byte(str))
return hex.EncodeToString(_md5.Sum([]byte("")))
}