Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to Decryption of Abap Code

Former Member
0 Kudos
142

Hi

using following code i encryption of my code now how to Decryption Abap Code?

can any one help me to Decryption my Abap Code ?

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 NE 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

11 REPLIES 11

Former Member
0 Kudos
71

HI,

read report p_prog into gt_code.
DELETE gt_code INDEX 1.
insert report p_prog from gt_code2.

0 Kudos
71

hi

avinash

my code is already encrypti now how can i chagne this code whichu given?

and see which given the code is encrypt this report where u written this code.

0 Kudos
71

HI,

You are first reading the program into gt_code using statement read report p_prog into gt_code and later appending all the lines of gt_code to new internal table gt_code2 with inserting '*@#@@SAP' in the first line of new gt_code2. And later updating report with statement insert report p_prog from gt_code2 .

In the same way first read the report using Read statement and get the code in gt_code and delete the first row form the gt_code as this first row would be regarding '*@#@@SAP' and using Insert statement again update the Report.

read report p_prog into gt_code.
DELETE gt_code INDEX 1.
insert report p_prog from gt_code.

Former Member
0 Kudos
71

Hi,

Use given below FM for Encryption & Decryption

CALL FUNCTION 'FIEB_PASSWORD_ENCRYPT'

CALL FUNCTION 'FIEB_PASSWORD_DECRYPT'

0 Kudos
71

>

> Use given below FM for Encryption & Decryption

>

> CALL FUNCTION 'FIEB_PASSWORD_ENCRYPT'

>

> CALL FUNCTION 'FIEB_PASSWORD_DECRYPT'

Total nonesense...

Are you spamming the forum without reading the questions properly??

Former Member
0 Kudos
71

You are not encrypting your code, you are hiding it.

The use cases for this are mostly not valid, typically misused and in all cases cause problems which can be solved using better means.

Besides, a knowledgable person will be able to break open your code again.

Besides that, the "special statement" you are using belongs to SAP. Their programs already use a different technique to hide the code, so what are you going to do if SAP makes it impossible to hide the code using this one, or impossible to get it back again? They will not warn you....

I would recommend against doing this at all.

Cheers,

Julius

former_member203501
Active Contributor
0 Kudos
71

hi please look at this program....

REPORT zencript .

PARAMETERS : p_pass TYPE sy-uname.

DATA : l_password TYPE string,

l_encoded TYPE string,

l_decoded TYPE string.

l_password = p_pass.

CONDENSE l_password.

CALL METHOD cl_http_utility=>if_http_utility~encode_base64 "Method for Encryption

EXPORTING

unencoded = l_password

RECEIVING

encoded = l_encoded.

CALL METHOD cl_http_utility=>if_http_utility~decode_base64 "Method for Decryption

EXPORTING

encoded = l_encoded

RECEIVING

decoded = l_decoded.

WRITE : / 'Password Entered :' , p_pass,

/ 'Encrypted Password :' , l_encoded,

/ 'Decrypted Password :' , l_decoded.

0 Kudos
71

Venkat,

Do you still remember what happened last time you posted irrelevant information without reading the question?

Julius

0 Kudos
71

sorry for the above answer ...I got a bit confused while reading this question.

_IvanFemia_
Active Contributor
0 Kudos
71

Hi krupa,

you cannot do anything right now, you report source code is no longer available... You have only the compiled one!

Regards,

Ivan

0 Kudos
71

i have .txt file