<?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 Encrypt string using unique keyword in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/encrypt-string-using-unique-keyword/m-p/11321600#M1919150</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We are calling an external website with a document number. For example '&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://testonline.com/docno=1234567"&gt;https://testonline.com/docno=1234567&lt;/A&gt;&lt;SPAN&gt;'. Now we need to encrypt this document number using a unique key(this key would be shared with the other party so that they can use if for decryption) and use the encrypted value in the link.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please let me know if there is any algorithm in ABAP which we can use to encrypt the document number using a unique key?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also the third party is asking for details like Initialization Vector. Where can we get this IV from.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;BR /&gt;Sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Oct 2015 14:28:33 GMT</pubDate>
    <dc:creator>sridhar_meesala</dc:creator>
    <dc:date>2015-10-07T14:28:33Z</dc:date>
    <item>
      <title>Encrypt string using unique keyword</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/encrypt-string-using-unique-keyword/m-p/11321600#M1919150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We are calling an external website with a document number. For example '&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://testonline.com/docno=1234567"&gt;https://testonline.com/docno=1234567&lt;/A&gt;&lt;SPAN&gt;'. Now we need to encrypt this document number using a unique key(this key would be shared with the other party so that they can use if for decryption) and use the encrypted value in the link.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please let me know if there is any algorithm in ABAP which we can use to encrypt the document number using a unique key?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also the third party is asking for details like Initialization Vector. Where can we get this IV from.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;BR /&gt;Sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Oct 2015 14:28:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/encrypt-string-using-unique-keyword/m-p/11321600#M1919150</guid>
      <dc:creator>sridhar_meesala</dc:creator>
      <dc:date>2015-10-07T14:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: Encrypt string using unique keyword</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/encrypt-string-using-unique-keyword/m-p/11321601#M1919151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SAP has an &lt;A _jive_internal="true" href="https://answers.sap.com/community/sso/blog/2014/07/16/sap-s-new-cryptographic-library-commoncryptolib"&gt;add-on module&lt;/A&gt; for internal data encryption, but it sounds like you are interested in commercial encryption standards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you will need to install a commercial product like PGP on your client pc or SAP application server and write programs that call the software in those locations to transform files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Initialization Vector sounds like a term specific to a kind of encryption. Ask which standard they are using.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a nice GUID generator in ABAP that you can use to generate unique values:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'courier new', courier;"&gt;&amp;nbsp; DATA:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; guid&amp;nbsp;&amp;nbsp; TYPE guid_32,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; o_err&amp;nbsp; TYPE REF TO cx_uuid_error,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; s_err&amp;nbsp; TYPE string.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp; TRY.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; guid = cl_system_uuid=&amp;gt;create_uuid_c32_static( ).&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CATCH cx_uuid_error INTO o_err.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; s_err = o_err-&amp;gt;get_text( ).&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'courier new', courier;"&gt;&amp;nbsp; ENDTRY.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Oct 2015 17:00:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/encrypt-string-using-unique-keyword/m-p/11321601#M1919151</guid>
      <dc:creator>juan_suros</dc:creator>
      <dc:date>2015-10-07T17:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: Encrypt string using unique keyword</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/encrypt-string-using-unique-keyword/m-p/11321602#M1919152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The third party is using AES encryption algorithm. I tried with below code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;lv_key = &lt;/STRONG&gt;&lt;STRONG&gt;cl_sec_sxml_writer&lt;SPAN class="L0S70"&gt;=&amp;gt;&lt;/SPAN&gt;generate_key&lt;SPAN class="L0S55"&gt;(&amp;nbsp; cl_sec_sxml_writer&lt;SPAN class="L0S70"&gt;=&amp;gt;&lt;/SPAN&gt;co_aes256_algorithm&lt;/SPAN&gt; &lt;SPAN class="L0S55"&gt;)&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;STRONG&gt;output &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;cl_sec_sxml_writer&lt;SPAN class="L0S70"&gt;=&amp;gt;&lt;/SPAN&gt;hmac&lt;SPAN class="L0S55"&gt;( &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;key &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;lv_key &lt;SPAN class="L0S52"&gt;input &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;input &lt;/STRONG&gt;&lt;SPAN class="L0S55"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but the other party is not able to decrypt it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please someone let me know if this is possible or if there is any other way we can ensure that the value is not shown in the URL when opening in the browser. I am using&amp;nbsp; CALL_BROWSER function module to call the URL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is highly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sri.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We used Base64 encoding. Closing the thread.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2015 06:49:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/encrypt-string-using-unique-keyword/m-p/11321602#M1919152</guid>
      <dc:creator>sridhar_meesala</dc:creator>
      <dc:date>2015-10-08T06:49:39Z</dc:date>
    </item>
  </channel>
</rss>

