<?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 Re: How to replicate sha256 hash example from CyberSource REST API documentation? in cybersource APIs</title>
    <link>https://community.developer.cybersource.com/t5/cybersource-APIs/How-to-replicate-sha256-hash-example-from-CyberSource-REST-API/m-p/84404#M456</link>
    <description>&lt;P&gt;If I understand correctly, you are trying to call API after generating the JWT Header.&lt;BR /&gt;Did you refer to this:&amp;nbsp;&lt;A href="https://github.com/CyberSource/cybersource-rest-samples-java/blob/master/src/main/java/samples/authentication/AuthSampleCode/StandaloneJwt.java" target="_blank"&gt;https://github.com/CyberSource/cybersource-rest-samples-java/blob/master/src/main/java/samples/authentication/AuthSampleCode/StandaloneJwt.java&lt;/A&gt;&amp;nbsp;? OR&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://github.com/CyberSource/cybersource-rest-samples-java/blob/master/src/main/java/samples/authentication/AuthSampleCode/StandaloneHttpSignature.java" target="_blank"&gt;https://github.com/CyberSource/cybersource-rest-samples-java/blob/master/src/main/java/samples/authentication/AuthSampleCode/StandaloneHttpSignature.java&lt;/A&gt;&amp;nbsp;?&lt;/P&gt;</description>
    <pubDate>Wed, 05 Oct 2022 17:08:19 GMT</pubDate>
    <dc:creator>rajvpate</dc:creator>
    <dc:date>2022-10-05T17:08:19Z</dc:date>
    <item>
      <title>How to replicate sha256 hash example from CyberSource REST API documentation?</title>
      <link>https://community.developer.cybersource.com/t5/cybersource-APIs/How-to-replicate-sha256-hash-example-from-CyberSource-REST-API/m-p/84395#M454</link>
      <description>&lt;P&gt;I am investigating the CyberSource REST API and want to test the JSON Web Token Authentication method as documented here:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://developer.cybersource.com/api/developer-guides/dita-gettingstarted/authentication/GenerateHeader/jwtTokenAuthentication.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://developer.cybersource.com/api/developer-guides/dita-gettingstarted/authentication/GenerateHeader/jwtTokenAuthentication.html&amp;nbsp;&lt;/A&gt;&lt;A href="https://omegle.ws" target="_blank" rel="noopener"&gt;/ome&lt;/A&gt;&lt;A href="https://omegle.club" target="_blank" rel="noopener"&gt;glz&lt;/A&gt; &lt;A href="https://shagle.download" target="_blank" rel="noopener"&gt;/shagle&lt;/A&gt;&lt;A href="https://voojio.com/chatroom/omegle" target="_blank" rel="noopener"&gt;voojio&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I am unable to replicate the sha256 hash of the JSON payload described in the JWT Payload/Claim Set section.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{
  "clientReferenceInformation" : {
    "code" : "TC50171_3"
  },
  "orderInformation" : {
    "amountDetails" : {
      "totalAmount" : "102.21",
      "currency" : "USD"
    }
  }
}&lt;/PRE&gt;&lt;P&gt;I've attempted to use the sha256sum command in binary and text format on a file containing the payload example. I've also attempted running this command on different permutations of this payload, such as without whitespace or newlines.&lt;/P&gt;&lt;P&gt;I expect to get the example hash of&lt;/P&gt;&lt;P&gt;2b4fee10da8c5e1feaad32b014021e079fe4afcf06af223004af944011a7cb65c&lt;/P&gt;&lt;P&gt;but instead get&lt;/P&gt;&lt;P&gt;f710ef58876f83e36b80a83c8ec7da75c8c1640d77d598c470a3dd85ae1458d3&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and other dissimilar hashes.&lt;/P&gt;&lt;P&gt;What am I doing wrong?&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2022 09:29:47 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/cybersource-APIs/How-to-replicate-sha256-hash-example-from-CyberSource-REST-API/m-p/84395#M454</guid>
      <dc:creator>AkinBredailik</dc:creator>
      <dc:date>2022-10-05T09:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to replicate sha256 hash example from CyberSource REST API documentation?</title>
      <link>https://community.developer.cybersource.com/t5/cybersource-APIs/How-to-replicate-sha256-hash-example-from-CyberSource-REST-API/m-p/84404#M456</link>
      <description>&lt;P&gt;If I understand correctly, you are trying to call API after generating the JWT Header.&lt;BR /&gt;Did you refer to this:&amp;nbsp;&lt;A href="https://github.com/CyberSource/cybersource-rest-samples-java/blob/master/src/main/java/samples/authentication/AuthSampleCode/StandaloneJwt.java" target="_blank"&gt;https://github.com/CyberSource/cybersource-rest-samples-java/blob/master/src/main/java/samples/authentication/AuthSampleCode/StandaloneJwt.java&lt;/A&gt;&amp;nbsp;? OR&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://github.com/CyberSource/cybersource-rest-samples-java/blob/master/src/main/java/samples/authentication/AuthSampleCode/StandaloneHttpSignature.java" target="_blank"&gt;https://github.com/CyberSource/cybersource-rest-samples-java/blob/master/src/main/java/samples/authentication/AuthSampleCode/StandaloneHttpSignature.java&lt;/A&gt;&amp;nbsp;?&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2022 17:08:19 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/cybersource-APIs/How-to-replicate-sha256-hash-example-from-CyberSource-REST-API/m-p/84404#M456</guid>
      <dc:creator>rajvpate</dc:creator>
      <dc:date>2022-10-05T17:08:19Z</dc:date>
    </item>
  </channel>
</rss>

