sumMD5Base64 calculate md5sum for an input byte array, returns base64 encoded.
(data []byte)
| 99 | |
| 100 | // sumMD5Base64 calculate md5sum for an input byte array, returns base64 encoded. |
| 101 | func sumMD5Base64(data []byte) string { |
| 102 | hash := newMd5Hasher() |
| 103 | defer hash.Close() |
| 104 | hash.Write(data) |
| 105 | return base64.StdEncoding.EncodeToString(hash.Sum(nil)) |
| 106 | } |
| 107 | |
| 108 | // getEndpointURL - construct a new endpoint. |
| 109 | func getEndpointURL(endpoint string, secure bool) (*url.URL, error) { |
no test coverage detected