nex-go/md5.go
2022-03-29 00:15:55 -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)
}