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

15 lines
222 B
Go

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