Files
llgo/_cmptest/sha256demo/sha256.go

12 lines
136 B
Go
Raw Normal View History

2024-07-31 13:56:42 +08:00
package main
import (
"crypto/sha256"
"fmt"
)
func main() {
sum := sha256.Sum256([]byte("hello world\n"))
fmt.Printf("%x", sum)
}