Hi
In Thomson-Reuters-World-Check-One-API-documentation.v2.0 we can see request example and description for it
"Given the above signing text, if a secret key of “1234” is used, the computed HMAC-SHA256 value would be 224B73FC07571E60E8B8D9BAB8107C656D3171F346B96183C665FD4C5330B85D when printed using hex encoding, or Iktz/AdXHmDouNm6uBB8ZW0xcfNGuWGDxmX9TFMwuF0= when printed using base64 encoding."
But i got first value “45F3083DA84B9C129E5B9575EA1AA81B656582E048E5D40F51535143A5985C02”
my golang code:
func HmacSha256(data string, secret string) string { h := hmac.New(sha256.New, []byte(secret)) h.Write([]byte(data)) sha := hex.EncodeToString(h.Sum(nil)) sha = strings.ToUpper(sha) return base64.StdEncoding.EncodeToString([]byte(sha)) }
What am I doing wrong? @Irfan.Khan