Files
notes_estom/Go/gopkg/crypto/md5.go
2021-09-03 05:34:34 +08:00

14 lines
160 B
Go

package main
import (
"crypto/md5"
"fmt"
"io"
)
func main() {
h := md5.New()
io.WriteString(h, "demo")
fmt.Printf("%x\n", h.Sum(nil)) // New() Sum()
}