Files
wechat_ipad_pro/lib/GetFileMD5Hash.go
2026-02-17 13:06:23 +08:00

14 lines
196 B
Go

package lib
import (
"crypto/md5"
"encoding/hex"
)
func GetFileMD5Hash(Data []byte) string {
hash := md5.New()
hash.Write(Data)
retVal := hash.Sum(nil)
return hex.EncodeToString(retVal)
}