nex-go/v1/md5.go
2022-03-27 19:59:17 -04:00

11 lines
No EOL
181 B
Go

package nex
import "crypto/md5"
// MD5Hash returns the MD5 hash of the input
func MD5Hash(text []byte) []byte {
hasher := md5.New()
hasher.Write(text)
return hasher.Sum(nil)
}