<?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 / Decryption of Abap  Code in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/encryption-decryption-of-abap-code/m-p/3299602#M789797</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also got the same type of requirement. Say Ex: We have developed a tool and we deployed it to the customer. We dont want to get that displayed. If it is not able to make invisible at leaset want to make the code in encrypted format. But te code should be executable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 May 2010 13:12:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-05-19T13:12:00Z</dc:date>
    <item>
      <title>Encryption / Decryption of Abap  Code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/encryption-decryption-of-abap-code/m-p/3299595#M789790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to  Encrypt &amp;amp;  Decrypt ABAP  code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in  Advance,&lt;/P&gt;&lt;P&gt;Sarath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2008 05:52:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/encryption-decryption-of-abap-code/m-p/3299595#M789790</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-24T05:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: Encryption / Decryption of Abap  Code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/encryption-decryption-of-abap-code/m-p/3299596#M789791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you please let us know your requirement for which you want to encript and decript your abap code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2008 06:08:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/encryption-decryption-of-abap-code/m-p/3299596#M789791</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-24T06:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: Encryption / Decryption of Abap  Code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/encryption-decryption-of-abap-code/m-p/3299597#M789792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The requirement  is we have developed as code with lots of effort for a very  rare requirement. &lt;/P&gt;&lt;P&gt;So  we want  to avoid any  taking  a copy  of the code form our developemnt  server. This code will  not  be moved to production server at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks In advance,&lt;/P&gt;&lt;P&gt;Sarath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2008 06:11:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/encryption-decryption-of-abap-code/m-p/3299597#M789792</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-24T06:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: Encryption / Decryption of Abap  Code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/encryption-decryption-of-abap-code/m-p/3299598#M789793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the following FM to encrypt &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'FIEB_PASSWORD_ENCRYPT' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the following FM to decrypt &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'FIEB_PASSWORD_DECRYPT' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By these FM you can encrypt &amp;amp; decrypt any fields of the Program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Two more things: &lt;/P&gt;&lt;P&gt;1. You can't use these FM to decode user passwords. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Although their import parameters are case sensitive, when you test them from se37, the import parameters are converted to uppercase (thus, it may seem that they aren't working).  A suggestion: encapsulate them in a custom FM that receives a string to be encrytped/decrypted and a parameter that says if you want to encrypt or decrypt and call this fm from your program. Test them very carefully, because once the string has been encrypted the decryption side is the only way to get it back. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function zsecurtext. &lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;"Interfase local &lt;/P&gt;&lt;P&gt;*"  IMPORTING &lt;/P&gt;&lt;P&gt;*"     REFERENCE(INTEXT) TYPE  FIEB_DECRYPTED_PASSWD OPTIONAL &lt;/P&gt;&lt;P&gt;*"     REFERENCE(ENCRYPT) TYPE  C OPTIONAL &lt;/P&gt;&lt;P&gt;*"  EXPORTING &lt;/P&gt;&lt;P&gt;*"     REFERENCE(OUTTEXT) TYPE  FIEB_DECRYPTED_PASSWD &lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;NOTE: This code doesn't work if run from se37. You should &lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;encrypt &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;  if encrypt = 'X'. &lt;/P&gt;&lt;P&gt;    call function 'FIEB_PASSWORD_ENCRYPT' &lt;/P&gt;&lt;P&gt;         exporting &lt;/P&gt;&lt;P&gt;              im_decrypted_password = intext &lt;/P&gt;&lt;P&gt;         importing &lt;/P&gt;&lt;P&gt;              ex_encrypted_password = outtext. &lt;/P&gt;&lt;P&gt;   else. &lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="8" type="ul"&gt;&lt;P&gt;Decrypting ******************* &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;    call function 'FIEB_PASSWORD_DECRYPT' &lt;/P&gt;&lt;P&gt;         exporting &lt;/P&gt;&lt;P&gt;              im_encrypted_password = intext &lt;/P&gt;&lt;P&gt;         importing &lt;/P&gt;&lt;P&gt;              ex_decrypted_password = outtext. &lt;/P&gt;&lt;P&gt;  endif. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endfunction. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2008 06:12:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/encryption-decryption-of-abap-code/m-p/3299598#M789793</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-24T06:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: Encryption / Decryption of Abap  Code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/encryption-decryption-of-abap-code/m-p/3299599#M789794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sharath,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try this code to encrypt a program&lt;/P&gt;&lt;P&gt;But be careful, since its not possible to decrypt it&lt;/P&gt;&lt;P&gt;You will need to backup the code in some text file&lt;/P&gt;&lt;P&gt;the program can be run in hidden mode, but you cannot see its source&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; Report  ZHIDER
*&amp;amp;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; Report           :      ZHIDER
*&amp;amp; Category         :      Offline
*&amp;amp; Business Analyst :      Technical Solution Group
*&amp;amp; Developed By     :      Kris Donald
*&amp;amp; Start Date       :      22-03-2007
*&amp;amp; End Date         :      22-03-2007
*&amp;amp;---------------------------------------------------------------------*
report  ZHIDER.


selection-screen begin of block b1 with frame title lv_frttl.
  parameters: p_prog like sy-repid obligatory.
selection-screen end of block b1.

data: gt_code(255)  type c occurs 0,
      gv_code      like line of gt_code,
      gt_code2(255) type c occurs 0.

initialization.
* sets the value for the title of the parameters block
  lv_frttl = 'Parameter'.

start-of-selection.

  read report p_prog into gt_code.
  if sy-subrc &amp;lt;&amp;gt; 0.
    write:/ 'Report does not exist'.
    exit.
  endif.

  append '*@#@@[SAP]' to gt_code2.
  loop at gt_code into gv_code.
    append gv_code to gt_code2.
  endloop.

  insert report p_prog from gt_code2.

* print unhidden source code for backup issues
  loop at gt_code into gv_code.
    write: / gv_code.
  endloop. "LOOP AT gt_code INTO gv_code

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2008 06:46:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/encryption-decryption-of-abap-code/m-p/3299599#M789794</guid>
      <dc:creator>former_member189059</dc:creator>
      <dc:date>2008-01-24T06:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: Encryption / Decryption of Abap  Code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/encryption-decryption-of-abap-code/m-p/3299600#M789795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sharath,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im not 100% sure, but maybe FM "VRM_COMPUTE_MD5" will do the encrypting-job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Hema.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2008 06:48:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/encryption-decryption-of-abap-code/m-p/3299600#M789795</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-24T06:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: Encryption / Decryption of Abap  Code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/encryption-decryption-of-abap-code/m-p/3299601#M789796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One way of achieving it is to put your code into a Text file let's say "Code.txt".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Selection screen Parameters values into another text file. Let's say "Param.txt".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write a driver program that will read both these files and dynamically creaes the program for your functionality as in "code.txt" and display the result and then deletes the dynamically created program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Example : CODE.TXT  - Origial functionality&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Report zrg_ag.&lt;/P&gt;&lt;P&gt;Parameter: p1 type c,&lt;/P&gt;&lt;P&gt;           P2 type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write: p1, p2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Text file containing selection screen Parameter, PARAM.TXT&lt;/U&gt;&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Driver program to read both of the above files&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; Report  ZZZ_DEL_TEST_RG&lt;/P&gt;&lt;P&gt;*&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;&lt;/P&gt;&lt;P&gt;*&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZZZ_DEL_TEST_RG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of code occurs 0,&lt;/P&gt;&lt;P&gt;         text(255),&lt;/P&gt;&lt;P&gt;      end of code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of param occurs 0,&lt;/P&gt;&lt;P&gt;        text(10),&lt;/P&gt;&lt;P&gt;      end of param.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: p1 type c,&lt;/P&gt;&lt;P&gt;      p2 type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters: p_code like rlgrap-filename,&lt;/P&gt;&lt;P&gt;            p_par  like rlgrap-filename.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Upload "CODE.TXT" into an internal table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CALL FUNCTION 'WS_UPLOAD'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;   FILENAME                      = p_code&lt;/P&gt;&lt;P&gt;   FILETYPE                      = 'DAT'&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    DATA_TAB                      = code&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   CONVERSION_ERROR              = 1&lt;/P&gt;&lt;P&gt;   FILE_OPEN_ERROR               = 2&lt;/P&gt;&lt;P&gt;   FILE_READ_ERROR               = 3&lt;/P&gt;&lt;P&gt;   INVALID_TYPE                  = 4&lt;/P&gt;&lt;P&gt;   NO_BATCH                      = 5&lt;/P&gt;&lt;P&gt;   UNKNOWN_ERROR                 = 6&lt;/P&gt;&lt;P&gt;   INVALID_TABLE_WIDTH           = 7&lt;/P&gt;&lt;P&gt;   GUI_REFUSE_FILETRANSFER       = 8&lt;/P&gt;&lt;P&gt;   CUSTOMER_ERROR                = 9&lt;/P&gt;&lt;P&gt;   NO_AUTHORITY                  = 10&lt;/P&gt;&lt;P&gt;   OTHERS                        = 11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Upload PARAM.TXT into an internal table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CALL FUNCTION 'WS_UPLOAD'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;   FILENAME                      = p_par&lt;/P&gt;&lt;P&gt;   FILETYPE                      = 'DAT'&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    DATA_TAB                      = param&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   CONVERSION_ERROR              = 1&lt;/P&gt;&lt;P&gt;   FILE_OPEN_ERROR               = 2&lt;/P&gt;&lt;P&gt;   FILE_READ_ERROR               = 3&lt;/P&gt;&lt;P&gt;   INVALID_TYPE                  = 4&lt;/P&gt;&lt;P&gt;   NO_BATCH                      = 5&lt;/P&gt;&lt;P&gt;   UNKNOWN_ERROR                 = 6&lt;/P&gt;&lt;P&gt;   INVALID_TABLE_WIDTH           = 7&lt;/P&gt;&lt;P&gt;   GUI_REFUSE_FILETRANSFER       = 8&lt;/P&gt;&lt;P&gt;   CUSTOMER_ERROR                = 9&lt;/P&gt;&lt;P&gt;   NO_AUTHORITY                  = 10&lt;/P&gt;&lt;P&gt;   OTHERS                        = 11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;insert report 'zrg_ag' from code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Read selection screen parameters&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;read table param index 1.&lt;/P&gt;&lt;P&gt;p1 = param-text.&lt;/P&gt;&lt;P&gt;read table param index 2.&lt;/P&gt;&lt;P&gt;p2 = param-text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;submit zrg_ag  with p1 = p1&lt;/P&gt;&lt;P&gt;                                   with p2 = p2&lt;/P&gt;&lt;P&gt;                                   and return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete report 'zrg_ag'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REWARD IF USEFUL.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2008 07:23:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/encryption-decryption-of-abap-code/m-p/3299601#M789796</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-24T07:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: Encryption / Decryption of Abap  Code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/encryption-decryption-of-abap-code/m-p/3299602#M789797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also got the same type of requirement. Say Ex: We have developed a tool and we deployed it to the customer. We dont want to get that displayed. If it is not able to make invisible at leaset want to make the code in encrypted format. But te code should be executable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 May 2010 13:12:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/encryption-decryption-of-abap-code/m-p/3299602#M789797</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-19T13:12:00Z</dc:date>
    </item>
  </channel>
</rss>

