fix test error

This commit is contained in:
tsingbx
2024-07-31 14:36:42 +08:00
parent f67b15b926
commit 8882d75132
4 changed files with 20 additions and 6 deletions

View File

@@ -3,9 +3,12 @@ package main
import (
"crypto/sha256"
"fmt"
"io"
)
func main() {
sum := sha256.Sum256([]byte("hello world\n"))
fmt.Printf("%x", sum)
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))
}