sha256Digest returns sha256 digest of the input bytes encoded by using the standard base64 encoding, as defined in RFC 4648.
(key []byte)
| 456 | // sha256Digest returns sha256 digest of the input bytes encoded |
| 457 | // by using the standard base64 encoding, as defined in RFC 4648. |
| 458 | func sha256Digest(key []byte) string { |
| 459 | digester := sha256.New() |
| 460 | digester.Write(key) |
| 461 | return base64.StdEncoding.EncodeToString(digester.Sum(nil)) |
| 462 | } |
no test coverage detected