<?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: Need help on Encryption and decryption in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-on-encryption-and-decryption/m-p/6806442#M1468280</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nandini,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In FM SSFC_BASE64_DECODE&lt;/P&gt;&lt;P&gt;pass parameter &lt;STRONG&gt;b64leng = 0&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In FM SSFC_BASE64_ENCODE&lt;/P&gt;&lt;P&gt;pass parameter &lt;STRONG&gt;binleng = 0&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ahsan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Apr 2010 09:26:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-04-02T09:26:47Z</dc:date>
    <item>
      <title>Need help on Encryption and decryption</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-on-encryption-and-decryption/m-p/6806441#M1468279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im in the need of encrpt and decrpt some text. For that I used Function modules,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SSFC_BASE64_DECODE&lt;/P&gt;&lt;P&gt;SSFC_BASE64_ENCODE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First I decode the text using SSFC_BASE64_DECODE.&lt;/P&gt;&lt;P&gt;Input : ABCD123&lt;/P&gt;&lt;P&gt;Output : 001083D76D&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I passed this output to SSFC_BASE64_ENCODE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Input : 001083D76D&lt;/P&gt;&lt;P&gt;But the output this FM is ABCD120=.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why its not giving the proper output? &lt;/P&gt;&lt;P&gt;Can any one help me on this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Helps will be highly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Apr 2010 08:53:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-on-encryption-and-decryption/m-p/6806441#M1468279</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-02T08:53:48Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on Encryption and decryption</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-on-encryption-and-decryption/m-p/6806442#M1468280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nandini,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In FM SSFC_BASE64_DECODE&lt;/P&gt;&lt;P&gt;pass parameter &lt;STRONG&gt;b64leng = 0&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In FM SSFC_BASE64_ENCODE&lt;/P&gt;&lt;P&gt;pass parameter &lt;STRONG&gt;binleng = 0&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ahsan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Apr 2010 09:26:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-on-encryption-and-decryption/m-p/6806442#M1468280</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-02T09:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on Encryption and decryption</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-on-encryption-and-decryption/m-p/6806443#M1468281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply ashan..&lt;/P&gt;&lt;P&gt;But still the same problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Apr 2010 10:09:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-on-encryption-and-decryption/m-p/6806443#M1468281</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-02T10:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on Encryption and decryption</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-on-encryption-and-decryption/m-p/6806444#M1468282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nandini,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you pass other than 0 in &lt;STRONG&gt;BINLENG&lt;/STRONG&gt; this is happening, Check once without passing the value here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;B64LENG&lt;/STRONG&gt; &lt;STRONG&gt;BINLENG&lt;/STRONG&gt; leave them Empty they will take the Default Values and chek now&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test run in SE37 I did it by checking them and i am &lt;STRONG&gt;not&lt;/STRONG&gt; getting it correct.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nandini,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead use FM &lt;STRONG&gt;DECODE_SLDPWD_BASE64&lt;/STRONG&gt; and &lt;STRONG&gt;ENCODE_SLDPWD_BASE64&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the below threads for some interesting Descussions &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="7685423"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="2319747"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1196646"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Check this one Aswell&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;/people/kathirvel.balakrishnan2/blog/2006/11/21/encryption-decryption-of-data-using-abap&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope i have provided you what you are looking for, else search for some more results which serve your purpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheerz&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Apr 2010 10:34:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-on-encryption-and-decryption/m-p/6806444#M1468282</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-02T10:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on Encryption and decryption</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-on-encryption-and-decryption/m-p/6806445#M1468283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Hi Nandini,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where did you get the first string (ABCD123) from? how do you know that string is a correct base64-encoded string?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should encode something first and then decode it, not the other way around. If you encode first using SSFC_BASE64_ENCODE and then run FM SSFC_BASE64_DECODE with the output from the previous FM, it should return the original value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2011 22:47:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-on-encryption-and-decryption/m-p/6806445#M1468283</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-21T22:47:13Z</dc:date>
    </item>
  </channel>
</rss>

