library: crypto/md5

This commit is contained in:
xushiwei
2024-07-30 02:07:19 +08:00
parent 42352d9f57
commit d480bb3ecd
7 changed files with 76 additions and 9 deletions

14
_cmptest/md5demo/md5.go Normal file
View File

@@ -0,0 +1,14 @@
package main
import (
"crypto/md5"
"fmt"
"io"
)
func main() {
h := md5.New()
io.WriteString(h, "The fog is getting thicker!")
io.WriteString(h, "And Leon's getting laaarger!")
fmt.Printf("%x", h.Sum(nil))
}