server/pkg/md5/md5.go
Chang lue Tsen 8addcc584b init: 1.0.0
2025-04-25 12:08:29 +09: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))
}