<?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 Encrypt a File Using Key? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-encrypt-a-file-using-key/m-p/7079532#M1505784</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After metting, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We decided to create a ZIP file with password.&lt;/P&gt;&lt;P&gt;So I implemented a application that generate a .bat file that receive as parameters the file, name of zip file and password.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tnks guys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Douglas Yuri Silveira on Jul 21, 2010 9:58 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Jul 2010 12:56:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-07-21T12:56:59Z</dc:date>
    <item>
      <title>How Encrypt a File Using Key?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-encrypt-a-file-using-key/m-p/7079526#M1505778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my problem. I have to create a bank's document encrypted to send to a legacy system. ( Using a KEY to validate the roll process)&lt;/P&gt;&lt;P&gt;I'm thinking to use two scenarios:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 - Generate the file via ABAP and sent it to a folder in a server to be consuming - SAP ERP.&lt;/P&gt;&lt;P&gt;2 - Generate the file via ABAP, sent it to PI encrypt it via Java Mapping and sent it to a server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ABAP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First question.&lt;/P&gt;&lt;P&gt;There is a way to generate this file using SHA1 using a Key as parameter? &lt;/P&gt;&lt;P&gt;(CALCULATE_HASH_FOR_CHAR)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second one.&lt;/P&gt;&lt;P&gt;How can I decrypt this file to test?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Third.&lt;/P&gt;&lt;P&gt;There is others ways to encrypt a file via SAP ERP? UTF-8 and BASE32 are not encrypt codes. They are encoding code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First&lt;/P&gt;&lt;P&gt;There is a library or other way to encrypt a file without implement a Java Mapping?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tnks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jul 2010 20:19:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-encrypt-a-file-using-key/m-p/7079526#M1505778</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-12T20:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: How Encrypt a File Using Key?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-encrypt-a-file-using-key/m-p/7079527#M1505779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;have your tried global class CL_HARD_WIRED_ENCRYPTOR? (was700)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jul 2010 23:11:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-encrypt-a-file-using-key/m-p/7079527#M1505779</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2010-07-12T23:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: How Encrypt a File Using Key?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-encrypt-a-file-using-key/m-p/7079528#M1505780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello friend,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can refer to code below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA if_encrypt TYPE REF TO cl_hard_wired_encryptor.

CREATE OBJECT if_encrypt.

* ENCRYPTOR the string
TRY.
CALL METHOD if_encrypt-&amp;gt;encrypt_string2string
EXPORTING
the_string = lv_string_value &amp;lt;---this is a string coming from user---i mean user input this value from the screen
receiving
RESULT = lv_encypt_value &amp;lt;----this one i declared as string as well...
.
CATCH cx_encrypt_error .

ENDTRY.

*for decryption--- put this code under your decrypt button
*since they are two different action methods that is why i needed to create the instance again.

DATA if_encrypt TYPE REF TO cl_hard_wired_encryptor.

CREATE OBJECT if_encrypt.

TRY.
CALL METHOD if_encrypt-&amp;gt;decrypt_string2string
EXPORTING
the_string = lv_encypt_value &amp;lt;---declared as string, as above
receiving
RESULT = lv_decrypt_value &amp;lt;---declared as string as well
.
CATCH cx_encrypt_error .

ENDTRY.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jul 2010 08:22:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-encrypt-a-file-using-key/m-p/7079528#M1505780</guid>
      <dc:creator>JerryWang</dc:creator>
      <dc:date>2010-07-13T08:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: How Encrypt a File Using Key?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-encrypt-a-file-using-key/m-p/7079529#M1505781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tnks guys...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Douglas Yuri Silveira on Jul 13, 2010 10:19 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jul 2010 13:15:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-encrypt-a-file-using-key/m-p/7079529#M1505781</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-13T13:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: How Encrypt a File Using Key?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-encrypt-a-file-using-key/m-p/7079530#M1505782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tnks guys...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I would like to know if are these methods algorithms as DES, AES, RSA... or others ?&lt;/P&gt;&lt;P&gt;Using these methods I can not export a KEY as a value to combine the string, is there other way to do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jul 2010 13:16:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-encrypt-a-file-using-key/m-p/7079530#M1505782</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-13T13:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: How Encrypt a File Using Key?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-encrypt-a-file-using-key/m-p/7079531#M1505783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; There is a way to generate this file using SHA1 using a Key as parameter? &lt;/P&gt;&lt;P&gt;Why don't you simple search the forum with "SHA1" term, you'd get the answer in an instant&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; How can I decrypt this file to test?&lt;/P&gt;&lt;P&gt;&amp;gt; There is others ways to encrypt a file via SAP ERP? UTF-8 and BASE32 are not encrypt codes. They are encoding code.&lt;/P&gt;&lt;P&gt;What encryption do you need?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; But I would like to know if are these methods algorithms as DES, AES, RSA... or others ?&lt;/P&gt;&lt;P&gt;Couldn't you say it at the beginning!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By simply looking at CL_HARD_WIRED_ENCRYPTOR methods, we see that the encryption mechanism is very simple (I'm not expert so I can't tell what it is), I wouldn't rely on it...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I recommend you to read [Note 662340 - SSF Encryption Using the SAPCryptolib|http://service.sap.com/sap/support/notes/662340]. There are also some documentation, security guides on sap library and sap marketplace.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sandra Rossi on Jul 13, 2010 6:51 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jul 2010 16:27:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-encrypt-a-file-using-key/m-p/7079531#M1505783</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2010-07-13T16:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: How Encrypt a File Using Key?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-encrypt-a-file-using-key/m-p/7079532#M1505784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After metting, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We decided to create a ZIP file with password.&lt;/P&gt;&lt;P&gt;So I implemented a application that generate a .bat file that receive as parameters the file, name of zip file and password.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tnks guys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Douglas Yuri Silveira on Jul 21, 2010 9:58 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jul 2010 12:56:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-encrypt-a-file-using-key/m-p/7079532#M1505784</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-21T12:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: How Encrypt a File Using Key?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-encrypt-a-file-using-key/m-p/7079533#M1505785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jul 2010 12:58:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-encrypt-a-file-using-key/m-p/7079533#M1505785</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-21T12:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: How Encrypt a File Using Key?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-encrypt-a-file-using-key/m-p/7079534#M1505786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Douglas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the above post, you managed to create ZIP file with password. How you managed to do it? Please let me know the steps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you. Kishore&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2014 07:54:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-encrypt-a-file-using-key/m-p/7079534#M1505786</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-09-25T07:54:05Z</dc:date>
    </item>
  </channel>
</rss>

