package main import ( "crypto/md5" "encoding/hex" ) func md5hex(b []byte) []byte { hash := md5.Sum(b) dst := make([]byte, hex.EncodedLen(md5.Size)) hex.Encode(dst, hash[:]) return dst }