Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for calculateSignatureV2 (0.09 sec)

  1. cmd/signature-v2.go

    	return calculateSignatureV2(stringToSign, cred.SecretKey)
    }
    
    // Return the signature v2 of a given request.
    func signatureV2(cred auth.Credentials, method string, encodedResource string, encodedQuery string, headers http.Header) string {
    	stringToSign := getStringToSignV2(method, encodedResource, encodedQuery, headers, "")
    	signature := calculateSignatureV2(stringToSign, cred.SecretKey)
    	return signature
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  2. cmd/post-policy_test.go

    	// Only need the encoding.
    	encodedPolicy := base64.StdEncoding.EncodeToString(policy)
    
    	// Presign with V4 signature based on the policy.
    	signature := calculateSignatureV2(encodedPolicy, secretKey)
    
    	formData := map[string]string{
    		"bucket":    bucketName,
    		"key":       objectName + "/${filename}",
    		"policy":    encodedPolicy,
    		"signature": signature,
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed May 22 23:07:14 UTC 2024
    - 30.2K bytes
    - Viewed (0)
Back to top