<?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 How to encode/decode XSTRING with BASE32 from RFC 4648 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-encode-decode-xstring-with-base32-from-rfc-4648/m-p/500830#M17326</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
  &lt;P&gt;I want to encode/decode a XSTRING with &lt;A href="https://en.wikipedia.org/wiki/Base32" target="_blank"&gt;BASE32&lt;/A&gt; from &lt;A href="https://tools.ietf.org/html/rfc4648" target="_blank"&gt;RFC 4648&lt;/A&gt;.&lt;/P&gt;
  &lt;P&gt;The encoded sequence is "AAAA BBBB CCCC DDDD" and the expected XSTRING is hexdecimal 00 00 00 84 21 10 84 21 8C 63.&lt;/P&gt;
  &lt;P&gt;I got a Google hit with "ABAP base32" in &lt;A href="https://wiki.scn.sap.com/" target="_blank"&gt;SCN Wiki&lt;/A&gt; &amp;gt; &lt;A href="https://wiki.scn.sap.com/wiki/x/zwzTH"&gt;Code Gallery&lt;/A&gt;:&lt;/P&gt;
  &lt;UL&gt;
   &lt;LI&gt;&lt;A href="https://wiki.scn.sap.com/wiki/x/VgzTH" target="_blank"&gt;Number base conversion in ABAP&lt;/A&gt;&lt;/LI&gt;
  &lt;/UL&gt;
  &lt;P&gt;The class /ui2/cl_number implemented BASE32 encoding for number, but not for XSTRING (byte stream).&lt;/P&gt;
  &lt;P&gt;There is a lot of BASE64 encoding/decoding, but I found no reuseable BASE32 implementation yet in SAP_BASIS.&lt;/P&gt;
  &lt;P&gt;Is there a BASE32 encode/decode function/method somewhere in ABAP?&lt;/P&gt;
  &lt;P&gt;Thanks.&lt;/P&gt;
  &lt;P&gt;P.S. &lt;/P&gt;
  &lt;P&gt;I already implemented the RFC 4648 with BASE16 / BASE32 / BASE32hex / BASE64 in a Z-class for myself. Want just to be sure, that there is really no implementation, which I have not yet found.&lt;/P&gt;</description>
    <pubDate>Thu, 04 Jan 2018 10:10:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2018-01-04T10:10:16Z</dc:date>
    <item>
      <title>How to encode/decode XSTRING with BASE32 from RFC 4648</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-encode-decode-xstring-with-base32-from-rfc-4648/m-p/500830#M17326</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
  &lt;P&gt;I want to encode/decode a XSTRING with &lt;A href="https://en.wikipedia.org/wiki/Base32" target="_blank"&gt;BASE32&lt;/A&gt; from &lt;A href="https://tools.ietf.org/html/rfc4648" target="_blank"&gt;RFC 4648&lt;/A&gt;.&lt;/P&gt;
  &lt;P&gt;The encoded sequence is "AAAA BBBB CCCC DDDD" and the expected XSTRING is hexdecimal 00 00 00 84 21 10 84 21 8C 63.&lt;/P&gt;
  &lt;P&gt;I got a Google hit with "ABAP base32" in &lt;A href="https://wiki.scn.sap.com/" target="_blank"&gt;SCN Wiki&lt;/A&gt; &amp;gt; &lt;A href="https://wiki.scn.sap.com/wiki/x/zwzTH"&gt;Code Gallery&lt;/A&gt;:&lt;/P&gt;
  &lt;UL&gt;
   &lt;LI&gt;&lt;A href="https://wiki.scn.sap.com/wiki/x/VgzTH" target="_blank"&gt;Number base conversion in ABAP&lt;/A&gt;&lt;/LI&gt;
  &lt;/UL&gt;
  &lt;P&gt;The class /ui2/cl_number implemented BASE32 encoding for number, but not for XSTRING (byte stream).&lt;/P&gt;
  &lt;P&gt;There is a lot of BASE64 encoding/decoding, but I found no reuseable BASE32 implementation yet in SAP_BASIS.&lt;/P&gt;
  &lt;P&gt;Is there a BASE32 encode/decode function/method somewhere in ABAP?&lt;/P&gt;
  &lt;P&gt;Thanks.&lt;/P&gt;
  &lt;P&gt;P.S. &lt;/P&gt;
  &lt;P&gt;I already implemented the RFC 4648 with BASE16 / BASE32 / BASE32hex / BASE64 in a Z-class for myself. Want just to be sure, that there is really no implementation, which I have not yet found.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2018 10:10:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-encode-decode-xstring-with-base32-from-rfc-4648/m-p/500830#M17326</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-01-04T10:10:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to encode/decode XSTRING with BASE32 from RFC 4648</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-encode-decode-xstring-with-base32-from-rfc-4648/m-p/500831#M17327</link>
      <description>&lt;P&gt;Hi Tibor ,&lt;/P&gt;
  &lt;P&gt;Take a look at "cl_bcs_convert" class &lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2018 13:08:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-encode-decode-xstring-with-base32-from-rfc-4648/m-p/500831#M17327</guid>
      <dc:creator>former_member330526</dc:creator>
      <dc:date>2018-01-04T13:08:44Z</dc:date>
    </item>
  </channel>
</rss>

