Files
mir-godot/service/framework/utils/password.go
MakerYang a902dd3de7 new
2024-08-06 18:30:21 +08:00

21 lines
427 B
Go

/**
#*****************************************************************************
# @author MakerYang
# @site mir2.makeryang.com
#*****************************************************************************
*/
package Utils
import (
"crypto/md5"
"encoding/hex"
)
func EncryptMD5(input string) string {
hash := md5.New()
hash.Write([]byte(input))
hashBytes := hash.Sum(nil)
return hex.EncodeToString(hashBytes)
}