<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic HMAC SHA256 key in base64 different result abap/java in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/hmac-sha256-key-in-base64-different-result-abap-java/m-p/12255611#M1986605</link>
    <description>&lt;P&gt;hi all &lt;/P&gt;
  &lt;P&gt;I am creating a HMAC encoded string and the key is in Base64&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;cl_abap_hmac=&amp;gt;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 ).&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt; java have a parameter to indicate the key is passed in base64 and the result is diferent that abap.&lt;/P&gt;
  &lt;P&gt;with abap i get the string of image 1&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1829546-captura1.png" /&gt;&lt;/P&gt;
  &lt;P&gt;but i need to generate the string of image 2 wtih mark the checkbox "secret base64 encoded"&lt;/P&gt;
  &lt;P&gt;&lt;IMG alt="" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1829548-captura2.png" /&gt;&lt;/P&gt;
  &lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
    <pubDate>Fri, 17 Jul 2020 12:48:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2020-07-17T12:48:16Z</dc:date>
    <item>
      <title>HMAC SHA256 key in base64 different result abap/java</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hmac-sha256-key-in-base64-different-result-abap-java/m-p/12255611#M1986605</link>
      <description>&lt;P&gt;hi all &lt;/P&gt;
  &lt;P&gt;I am creating a HMAC encoded string and the key is in Base64&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;cl_abap_hmac=&amp;gt;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 ).&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt; java have a parameter to indicate the key is passed in base64 and the result is diferent that abap.&lt;/P&gt;
  &lt;P&gt;with abap i get the string of image 1&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1829546-captura1.png" /&gt;&lt;/P&gt;
  &lt;P&gt;but i need to generate the string of image 2 wtih mark the checkbox "secret base64 encoded"&lt;/P&gt;
  &lt;P&gt;&lt;IMG alt="" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1829548-captura2.png" /&gt;&lt;/P&gt;
  &lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jul 2020 12:48:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hmac-sha256-key-in-base64-different-result-abap-java/m-p/12255611#M1986605</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2020-07-17T12:48:16Z</dc:date>
    </item>
  </channel>
</rss>

