<?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: Operations on Text File - Encrypt, Decrypt, Password Protected in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/operations-on-text-file-encrypt-decrypt-password-protected/m-p/7511161#M1559560</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Richard...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Can u explain more clear with the help of an example....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Dec 2010 06:57:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-12-17T06:57:10Z</dc:date>
    <item>
      <title>Operations on Text File - Encrypt, Decrypt, Password Protected</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/operations-on-text-file-encrypt-decrypt-password-protected/m-p/7511159#M1559558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is to upload a text file  and do some operations on it and then encrypt the content in it ans save it on application server with password protected. Later i want to decrypt it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me for the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to encyypt and decrypt the text file using standard encryption alogrithms like DES, MD5, RSA? Are there any standand function modules for both encryption and decryption which accepts a user defined public key?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to download a password protected text file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Dec 2010 12:51:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/operations-on-text-file-encrypt-decrypt-password-protected/m-p/7511159#M1559558</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-14T12:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: Operations on Text File - Encrypt, Decrypt, Password Protected</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/operations-on-text-file-encrypt-decrypt-password-protected/m-p/7511160#M1559559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We do Encryption and Decryption all the time, but we use UNIX Commands in our ABAP programs to do it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Dec 2010 21:42:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/operations-on-text-file-encrypt-decrypt-password-protected/m-p/7511160#M1559559</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-16T21:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: Operations on Text File - Encrypt, Decrypt, Password Protected</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/operations-on-text-file-encrypt-decrypt-password-protected/m-p/7511161#M1559560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Richard...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Can u explain more clear with the help of an example....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Dec 2010 06:57:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/operations-on-text-file-encrypt-decrypt-password-protected/m-p/7511161#M1559560</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-17T06:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: Operations on Text File - Encrypt, Decrypt, Password Protected</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/operations-on-text-file-encrypt-decrypt-password-protected/m-p/7511162#M1559561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello carry out the flllowing steps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Create corrosponding ECC command for unix one  sm69 ( Use the command to encript the file and decript the file)&lt;/P&gt;&lt;P&gt;2. Write you file to AS &lt;/P&gt;&lt;P&gt;3.Perform the command ie. operation on the file using function module SXPG_COMMAND_EXECUTE on AS ( as you want..! passing paraeter will be your file name...so on and so forth )...Check more for function module documentation&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>Fri, 17 Dec 2010 07:27:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/operations-on-text-file-encrypt-decrypt-password-protected/m-p/7511162#M1559561</guid>
      <dc:creator>anup_deshmukh4</dc:creator>
      <dc:date>2010-12-17T07:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: Operations on Text File - Encrypt, Decrypt, Password Protected</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/operations-on-text-file-encrypt-decrypt-password-protected/m-p/7511163#M1559562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Please explain with the help of an example...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What are the commands to be used to encrypt/decrypt a file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do u  mean by write file to AS?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please explain with example....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Dec 2010 08:57:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/operations-on-text-file-encrypt-decrypt-password-protected/m-p/7511163#M1559562</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-17T08:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: Operations on Text File - Encrypt, Decrypt, Password Protected</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/operations-on-text-file-encrypt-decrypt-password-protected/m-p/7511164#M1559563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CALL FUNCTION 'Z_CRYPT_FILE'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          SOURCE_PATH         = WS_PATH&lt;/P&gt;&lt;P&gt;          SOURCE_FILE         = WS_OLDFILE&lt;/P&gt;&lt;P&gt;          DESTINATION_PATH    = WS_NEW_PATH&lt;/P&gt;&lt;P&gt;          DESTINATION_FILE    = WS_NEWFILE&lt;/P&gt;&lt;P&gt;          SWITCH              = 'E'&lt;/P&gt;&lt;P&gt;          KEY                 = ZUSER_PW&lt;/P&gt;&lt;P&gt;          KEEP_SOURCE_FILE    = ' '&lt;/P&gt;&lt;P&gt;        EXCEPTIONS&lt;/P&gt;&lt;P&gt;          INVALID_SWITCH      = 1&lt;/P&gt;&lt;P&gt;          SOURCE_FILE_NOTFOUND = 2&lt;/P&gt;&lt;P&gt;          DIDNT_WORK          = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FUNCTION MODULE Z_CRYPT_FILE  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: CINPUT(300) TYPE C.&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF LIST OCCURS 0,&lt;/P&gt;&lt;P&gt;        DATA(238) TYPE C,&lt;/P&gt;&lt;P&gt;        DELIMITER(04) TYPE C,&lt;/P&gt;&lt;P&gt;        FILE(12) TYPE C,&lt;/P&gt;&lt;P&gt;      END OF LIST.&lt;/P&gt;&lt;P&gt;DATA: SOURCE TYPE ZCHAR200.&lt;/P&gt;&lt;P&gt;DATA: DESTINATION TYPE ZCHAR200.&lt;/P&gt;&lt;P&gt;DATA: ZINDX TYPE I.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: msg(100).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SWITCH = 'E'.&lt;/P&gt;&lt;P&gt;   IF FILETYPE = 'T'.&lt;/P&gt;&lt;P&gt;      OPEN DATASET SOURCE IN TEXT MODE FOR INPUT ENCODING DEFAULT&lt;/P&gt;&lt;P&gt;         message msg.&lt;/P&gt;&lt;P&gt;   ELSE.&lt;/P&gt;&lt;P&gt;      OPEN DATASET SOURCE IN BINARY MODE FOR INPUT message msg.&lt;/P&gt;&lt;P&gt;   ENDIF.&lt;/P&gt;&lt;P&gt;   IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;      RAISE SOURCE_FILE_NOTFOUND.&lt;/P&gt;&lt;P&gt;   ENDIF.&lt;/P&gt;&lt;P&gt;   CLOSE DATASET SOURCE.&lt;/P&gt;&lt;P&gt;   CLEAR CINPUT.&lt;/P&gt;&lt;P&gt;   CONCATENATE '/usr/local/bin/gpg -sev -r'&lt;/P&gt;&lt;P&gt;    KEY&lt;/P&gt;&lt;P&gt;    '-o'&lt;/P&gt;&lt;P&gt;    DESTINATION&lt;/P&gt;&lt;P&gt;    SOURCE&lt;/P&gt;&lt;P&gt;   INTO CINPUT SEPARATED BY SPACE.&lt;/P&gt;&lt;P&gt;   CONCATENATE CINPUT '2&amp;gt;&amp;amp;1' INTO CINPUT SEPARATED BY ' '.&lt;/P&gt;&lt;P&gt;   CALL 'SYSTEM' ID 'COMMAND' FIELD CINPUT ID 'TAB' FIELD&lt;/P&gt;&lt;P&gt;                              LIST-&lt;STRONG&gt;SYS&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   IF FILETYPE = 'T'.   &lt;/P&gt;&lt;P&gt;      OPEN DATASET DESTINATION IN TEXT MODE FOR INPUT ENCODING DEFAULT&lt;/P&gt;&lt;P&gt;         message msg.&lt;/P&gt;&lt;P&gt;   ELSE.&lt;/P&gt;&lt;P&gt;      OPEN DATASET DESTINATION IN BINARY MODE FOR INPUT message msg.&lt;/P&gt;&lt;P&gt;   ENDIF.&lt;/P&gt;&lt;P&gt;   IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;      CLOSE DATASET DESTINATION.&lt;/P&gt;&lt;P&gt;      IF keep_source_file &amp;lt;&amp;gt; 'X'.&lt;/P&gt;&lt;P&gt;         CLEAR CINPUT.&lt;/P&gt;&lt;P&gt;         CONCATENATE 'rm' SOURCE INTO CINPUT&lt;/P&gt;&lt;P&gt;         SEPARATED BY SPACE.&lt;/P&gt;&lt;P&gt;         CALL 'SYSTEM' ID 'COMMAND' FIELD CINPUT ID 'TAB' FIELD&lt;/P&gt;&lt;P&gt;                        LIST-&lt;STRONG&gt;SYS&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;   ELSE.&lt;/P&gt;&lt;P&gt;    write: 'Encryption error  on command: ',&lt;/P&gt;&lt;P&gt;       cinput.&lt;/P&gt;&lt;P&gt;    skip 1.&lt;/P&gt;&lt;P&gt;     loop at list.&lt;/P&gt;&lt;P&gt;        write: / LIST.&lt;/P&gt;&lt;P&gt;       endloop.&lt;/P&gt;&lt;P&gt;      RAISE DIDNT_WORK.&lt;/P&gt;&lt;P&gt;   ENDIF.&lt;/P&gt;&lt;P&gt;   IF FILETYPE = 'T'.   &lt;/P&gt;&lt;P&gt;      OPEN DATASET SOURCE IN TEXT MODE FOR INPUT ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;   ELSE.&lt;/P&gt;&lt;P&gt;      OPEN DATASET SOURCE IN BINARY MODE FOR INPUT.&lt;/P&gt;&lt;P&gt;   ENDIF.&lt;/P&gt;&lt;P&gt;   IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;      RAISE SOURCE_FILE_NOTFOUND.&lt;/P&gt;&lt;P&gt;   ENDIF.&lt;/P&gt;&lt;P&gt;   CLOSE DATASET SOURCE.&lt;/P&gt;&lt;P&gt;   CLEAR CINPUT.&lt;/P&gt;&lt;P&gt;   CONCATENATE '/usr/local/bin/gpg -o'&lt;/P&gt;&lt;P&gt;    DESTINATION&lt;/P&gt;&lt;P&gt;    SOURCE&lt;/P&gt;&lt;P&gt;   INTO CINPUT SEPARATED BY SPACE.&lt;/P&gt;&lt;P&gt;   CONCATENATE CINPUT '2&amp;gt;&amp;amp;1' INTO CINPUT SEPARATED BY ' '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   CALL 'SYSTEM' ID 'COMMAND' FIELD CINPUT ID 'TAB' FIELD&lt;/P&gt;&lt;P&gt;                              LIST-&lt;STRONG&gt;SYS&lt;/STRONG&gt;.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  REFRESH LIST.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CLEAR LIST.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   IF FILETYPE = 'T'.  &lt;/P&gt;&lt;P&gt;      OPEN DATASET DESTINATION IN TEXT MODE FOR INPUT ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;   ELSE.&lt;/P&gt;&lt;P&gt;      OPEN DATASET DESTINATION IN BINARY MODE FOR INPUT.&lt;/P&gt;&lt;P&gt;   ENDIF.&lt;/P&gt;&lt;P&gt;   IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;      CLOSE DATASET DESTINATION.&lt;/P&gt;&lt;P&gt;   ELSE.&lt;/P&gt;&lt;P&gt;*list output if error&lt;/P&gt;&lt;P&gt;      loop at list.&lt;/P&gt;&lt;P&gt;        write: / LIST.&lt;/P&gt;&lt;P&gt;       endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      RAISE DIDNT_WORK.&lt;/P&gt;&lt;P&gt;   ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Dec 2010 14:50:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/operations-on-text-file-encrypt-decrypt-password-protected/m-p/7511164#M1559563</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-17T14:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: Operations on Text File - Encrypt, Decrypt, Password Protected</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/operations-on-text-file-encrypt-decrypt-password-protected/m-p/7511165#M1559564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Password protected use following FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SXPG_COMMAND_EXECUTE'&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Dec 2010 08:47:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/operations-on-text-file-encrypt-decrypt-password-protected/m-p/7511165#M1559564</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-21T08:47:39Z</dc:date>
    </item>
  </channel>
</rss>

