Why encryption to Base64 for generating signature is not working in Ruby?

Hi! In Thomson-Reuters-World-Check-One-API-documentation.v1.5 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."

And I can get first value (224B73FC07571E60E8B8D9BAB8107C656D3171F346B96183C665FD4C5330B85D) but when I trying to encode it in base64, (I'm using Ruby)

Base64.encode64('224B73FC07571E60E8B8D9BAB8107C656D3171F346B96183C665FD4C5330B85D')

I cannot get (Iktz/AdXHmDouNm6uBB8ZW0xcfNGuWGDxmX9TFMwuF0=).

What am I doing wrong?

Answers