package main
import (
"crypto/md5"
"fmt"
)
func main() {
data := []byte("nilpointer.net")
fmt.Printf("%x", md5.Sum(data))
}
Output
02af4c4d343135b4ee085a75ca5f4bbc
package main
import (
"crypto/md5"
"fmt"
)
func main() {
data := []byte("nilpointer.net")
fmt.Printf("%x", md5.Sum(data))
}
02af4c4d343135b4ee085a75ca5f4bbc