SHA256 Hash in Go
GoCompute a SHA256 digest with the crypto/sha256 stdlib.
package main
import (
"crypto/sha256"
"encoding/hex"
"fmt"
)
func main() {
sum := sha256.Sum256([]byte("hello world"))
fmt.Println(hex.EncodeToString(sum[:]))
}