Files
llgo/_cmptest/sha512demo/sha512.go
2024-07-31 14:36:42 +08:00

15 lines
222 B
Go

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