Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for getMD5Sum (0.17 sec)

  1. cmd/hasher.go

    	hash := sha256.New()
    	hash.Write(data)
    	return hash.Sum(nil)
    }
    
    // getMD5Sum returns MD5 sum of given data.
    func getMD5Sum(data []byte) []byte {
    	hash := md5.New()
    	hash.Write(data)
    	return hash.Sum(nil)
    }
    
    // getMD5Hash returns MD5 hash in hex encoding of given data.
    func getMD5Hash(data []byte) string {
    	return hex.EncodeToString(getMD5Sum(data))
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri May 27 13:00:19 GMT 2022
    - 1.4K bytes
    - Viewed (0)
  2. docs/debugging/s3-check-md5/main.go

    	bucket, prefix                 string
    	debug                          bool
    	versions                       bool
    	insecure                       bool
    )
    
    // getMD5Sum returns MD5 sum of given data.
    func getMD5Sum(data []byte) []byte {
    	hash := md5.New()
    	hash.Write(data)
    	return hash.Sum(nil)
    }
    
    func main() {
    	flag.StringVar(&endpoint, "endpoint", "https://play.min.io", "S3 endpoint URL")
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Feb 17 01:15:57 GMT 2024
    - 6.3K bytes
    - Viewed (0)
  3. cmd/test-utils_test.go

    }
    
    // getMD5HashBase64 returns MD5 hash in base64 encoding of given data.
    func getMD5HashBase64(data []byte) string {
    	return base64.StdEncoding.EncodeToString(getMD5Sum(data))
    }
    
    // Returns new HTTP request object.
    func newTestRequest(method, urlStr string, contentLength int64, body io.ReadSeeker) (*http.Request, error) {
    	if method == "" {
    		method = http.MethodPost
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:06:57 GMT 2024
    - 75.7K bytes
    - Viewed (0)
Back to top