library: c/openssl

This commit is contained in:
xushiwei
2024-07-30 01:35:49 +08:00
parent cc37097164
commit 42352d9f57
4 changed files with 140 additions and 0 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))
}