ComputeStringHash returns hex-encoded SHA-256 hash of the given string
(s string)
| 29 | |
| 30 | // ComputeStringHash returns hex-encoded SHA-256 hash of the given string |
| 31 | func ComputeStringHash(s string) string { |
| 32 | h := sha256.New() |
| 33 | h.Write([]byte(s)) |
| 34 | return hex.EncodeToString(h.Sum(nil)) |
| 35 | } |
no outgoing calls