Skip to Content
Jul 17, 2020 at 12:48 PM

HMAC SHA256 key in base64 different result abap/java

253 Views Last edit Jul 17, 2020 at 12:54 PM 3 rev

hi all

I am creating a HMAC encoded string and the key is in Base64

if_algorithm = 'SHA256'if_key = 
if_key *** In Base64
if_data = lv_data_2 
ef_hmacstring = ef_hmacstring_h
ef_hmacxstring = ef_hmacxstring_h
ef_hmacb64string = ef_hmacb64string_h ).

java have a parameter to indicate the key is passed in base64 and the result is diferent that abap.

with abap i get the string of image 1

but i need to generate the string of image 2 wtih mark the checkbox "secret base64 encoded"

Thank you in advance.


captura1.png (47.2 kB)
captura2.png (45.0 kB)
captura2.png (45.7 kB)