Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

HMAC SHA256 key in base64 different result abap/java

Former Member
0 Likes
1,989

hi all

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

cl_abap_hmac=>calculate_hmac_for_char(
EXPORTING
if_algorithm = 'SHA256'if_key = 
if_key *** In Base64
if_data = lv_data_2 
IMPORTING
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.

0 REPLIES 0