Files
go_process_manager/utils/md5.go
liuzhihang1 831ea9889f 初次提交
2024-06-26 20:45:23 +08:00

13 lines
166 B
Go

package utils
import (
"crypto/md5"
"encoding/hex"
)
func Md5(str string) string {
h := md5.New()
h.Write([]byte(str))
return hex.EncodeToString(h.Sum(nil))
}