Skip to Content

HMAC SHA256 key in base64 different result abap/java

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)
Add a comment
10|10000 characters needed characters exceeded

Related questions

0 Answers

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.