‎2019 Jul 11 5:55 PM
Hello Geeks,
I have an issue where i am trying to connect to API service which accepts SHA256 bit encrypted BAse64 string which should include API Key as well. I am using class "cl_abap_message_digest=>calculate_hash_for_char" - but this only converts URL that i am passing. Along with URL i still need to pass API Secret key provided by vendor which is "CPv3+fT6er!]yKvp". Vendor recommends this conversion from website "https://hash.online-convert.com/sha256-generator". However i need to this dynamically in the loop while i make each call. Can someone please help me find the Class or FM which can convert this for me?
Really appreciate your responses.
Thanks.
‎2019 Jul 15 8:06 AM
Hello Dhwanit,
Did you check the possibility of converting the base64 using CL_HTTP_UTILITY?
Cheers!
Isuru
‎2019 Jul 15 2:27 PM
Hi Isuru,
Yes, i looked at that option. I think i found the solution. I am using class cl_abap_hmac now. This does give me the Authorization link i am getting.
Thanks - Dhwanit.