package encrypt

import (
	"crypto/md5"
	"encoding/hex"
)

func GetMD5Hash(text string) *string {
	hasher := md5.New()
	hasher.Write([]byte(text))
	result := hex.EncodeToString(hasher.Sum(nil))
	return &result
}

func GetMD5HashString(text string) string {
	hasher := md5.New()
	hasher.Write([]byte(text))
	result := hex.EncodeToString(hasher.Sum(nil))
	return result
}
