Files
SNCTF/tools/md5.go
jiayuqi7813 7cb171bc90 default
2022-05-21 23:29:23 +08:00

14 lines
168 B
Go

package tools
import (
"crypto/md5"
"encoding/hex"
)
func MD5(v string)string{
d := []byte(v)
m := md5.New()
m.Write(d)
return hex.EncodeToString(m.Sum(nil))
}