<?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: Encryption using public key and RSA algorithm in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/encryption-using-public-key-and-rsa-algorithm/m-p/12144032#M1976306</link>
    <description>&lt;P&gt;I had the same Problem and i used CALL FUNCTION 'SSFW_KRN_ENVELOPE'. To use the CALL FUNCTION 'SSFW_KRN_ENVELOPE' you need a structure from the strustcab. So I created this strustcab-structure with a certificate which contained this public key. (You can use any Certificate and replace manually the Public Key in it)&lt;/P&gt;</description>
    <pubDate>Thu, 27 Aug 2020 15:50:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2020-08-27T15:50:27Z</dc:date>
    <item>
      <title>Encryption using public key and RSA algorithm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/encryption-using-public-key-and-rsa-algorithm/m-p/12144028#M1976302</link>
      <description>&lt;P&gt;I am having a challenge in encrypting a password and App-Key for e-Invoice process : &lt;/P&gt;
  &lt;P&gt;1) Encryption has to be done based on a public key [ length = 394 chars ]&lt;/P&gt;
  &lt;P&gt;2) Encryption has to be done based on RSA algorithm&lt;/P&gt;
  &lt;P&gt;I am trying out my best in class : &lt;/P&gt;
  &lt;P&gt;cl_sec_sxml_xencryption=&amp;gt;encrypt_string&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2020 11:20:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/encryption-using-public-key-and-rsa-algorithm/m-p/12144028#M1976302</guid>
      <dc:creator>tabrezs</dc:creator>
      <dc:date>2020-02-03T11:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: Encryption using public key and RSA algorithm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/encryption-using-public-key-and-rsa-algorithm/m-p/12144029#M1976303</link>
      <description>&lt;P&gt;Try this class  'cl_sec_sxml_writer'&lt;/P&gt;&lt;P&gt;ex: &lt;/P&gt;&lt;P&gt;cl_sec_sxml_writer=&amp;gt;encrypt(&lt;/P&gt;&lt;P&gt; EXPORTING&lt;BR /&gt; plaintext = xtext&lt;BR /&gt; key = xkey&lt;BR /&gt; algorithm = cl_sec_sxml_writer=&amp;gt;co_aes256_algorithm&lt;BR /&gt; IMPORTING&lt;BR /&gt; ciphertext = ciphertext ).&lt;/P&gt;</description>
      <pubDate>Sat, 25 Jul 2020 08:19:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/encryption-using-public-key-and-rsa-algorithm/m-p/12144029#M1976303</guid>
      <dc:creator>how2kode</dc:creator>
      <dc:date>2020-07-25T08:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: Encryption using public key and RSA algorithm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/encryption-using-public-key-and-rsa-algorithm/m-p/12144030#M1976304</link>
      <description>&lt;P&gt;it's symmetric encryption while the OP is asking about asymmetric encryption.  &lt;/P&gt;</description>
      <pubDate>Sat, 25 Jul 2020 10:33:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/encryption-using-public-key-and-rsa-algorithm/m-p/12144030#M1976304</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2020-07-25T10:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: Encryption using public key and RSA algorithm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/encryption-using-public-key-and-rsa-algorithm/m-p/12144031#M1976305</link>
      <description>&lt;P&gt;Using asymmetric encryption will be a bit typical as you will have to manage the public and private keys somehow within the SAP system (probably through some service) as the keys won't be stored inside the SAP but rather on the AD.&lt;/P&gt;&lt;P&gt;My best bet would be that you probably have to write the whole class/function for encryption and decryption inside the SAP system utilizing PGP or you can take a look at the FM  &lt;STRONG&gt;'SSF_KRN_ENVELOPE' &lt;/STRONG&gt;i have never used it so can't vouch for it.&lt;/P&gt;&lt;P&gt;Lastly if you just want to encrypt the invoice same for all users then you can go ahead with the symmetric encryption as mentioned in this blog:&lt;/P&gt;&lt;P&gt;&lt;A href="https://blogs.sap.com/2019/08/26/aes-encryption-in-abap/"&gt;https://blogs.sap.com/2019/08/26/aes-encryption-in-abap/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 25 Jul 2020 10:44:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/encryption-using-public-key-and-rsa-algorithm/m-p/12144031#M1976305</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2020-07-25T10:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: Encryption using public key and RSA algorithm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/encryption-using-public-key-and-rsa-algorithm/m-p/12144032#M1976306</link>
      <description>&lt;P&gt;I had the same Problem and i used CALL FUNCTION 'SSFW_KRN_ENVELOPE'. To use the CALL FUNCTION 'SSFW_KRN_ENVELOPE' you need a structure from the strustcab. So I created this strustcab-structure with a certificate which contained this public key. (You can use any Certificate and replace manually the Public Key in it)&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2020 15:50:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/encryption-using-public-key-and-rsa-algorithm/m-p/12144032#M1976306</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2020-08-27T15:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: Encryption using public key and RSA algorithm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/encryption-using-public-key-and-rsa-algorithm/m-p/12144033#M1976307</link>
      <description>&lt;P&gt;Have you worked on this concept.. i am also facing the issue , do i need to convert the key from string to xstring format then pass in this class&lt;/P&gt;</description>
      <pubDate>Mon, 07 Sep 2020 11:06:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/encryption-using-public-key-and-rsa-algorithm/m-p/12144033#M1976307</guid>
      <dc:creator>sourav2117</dc:creator>
      <dc:date>2020-09-07T11:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: Encryption using public key and RSA algorithm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/encryption-using-public-key-and-rsa-algorithm/m-p/14173260#M2042253</link>
      <description>&lt;P&gt;Can you give steps how you have used&amp;nbsp;&lt;SPAN&gt;strustcab and how you replaced&amp;nbsp;Public Key .&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Aug 2025 11:01:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/encryption-using-public-key-and-rsa-algorithm/m-p/14173260#M2042253</guid>
      <dc:creator>Suravee</dc:creator>
      <dc:date>2025-08-06T11:01:35Z</dc:date>
    </item>
  </channel>
</rss>

