/**
Sum256 returns the SHA256 checksum of the data.
package main
import (
"crypto/sha256"
"encoding/hex"
"log"
)
func calculateHash(toBeHashed string) string {
hashInBytes := sha256.Sum256([]byte(toBeHashed))
hashStr := hex.EncodeToString(hashInBytes[:])
log.Printf("%s\n %s\n", toBeHashed, hashStr)
return hashStr
}
func main() {
calculateHash("test1")
}