2025-09-27 10:17:16 +08:00

13 lines
173 B
Go

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