Files
mir-godot/service/framework/utils/password.go

21 lines
427 B
Go
Raw Normal View History

2024-08-06 18:30:21 +08:00
/**
#*****************************************************************************
# @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)
}