func Hash(s string) string {
	hash := sha256.New()
	_, err := hash.Write([]byte(s))
	if err != nil {
		utils.HandleError(err, "Unable to generate hash")
	}
	return fmt.Sprintf("%x", hash.Sum(nil))
}
Hash a string
package crypto
import (
	"crypto/sha256"
	"fmt"
	"github.com/DopplerHQ/cli/pkg/utils"
)