云起工作室 15711107967
06_加密解密
2025-02-06 10:37:54
import (
   "crypto/md5"
   "encoding/hex"
)

func EnMd5(s string) string {
   ctx := md5.New()
   ctx.Write([]byte(s))
   return hex.EncodeToString(ctx.Sum(nil))
}