Files
go_process_manager/utils/md5.go
17689440205 460a1f428b update
2025-01-26 16:43:51 +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))
}