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

12 lines
136 B
Go

package main
import (
"crypto/sha256"
"fmt"
)
func main() {
sum := sha256.Sum256([]byte("hello world\n"))
fmt.Printf("%x", sum)
}