15 lines
212 B
Go
15 lines
212 B
Go
package q5
|
|
|
|
import "crypto/md5"
|
|
import "encoding/hex"
|
|
|
|
func Test()(a string) {
|
|
return "testb"
|
|
}
|
|
|
|
func Md5Str(data string) string {
|
|
h := md5.New()
|
|
h.Write([]byte(data))
|
|
return hex.EncodeToString(h.Sum(nil))
|
|
}
|