2009 Apr 04 8:06 AM
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
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
2009 Apr 04 8:34 AM
HI,
read report p_prog into gt_code.
DELETE gt_code INDEX 1.
insert report p_prog from gt_code2.
2009 Apr 04 9:58 AM
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.
2009 Apr 04 10:25 AM
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.
2009 Apr 04 8:34 AM
Hi,
Use given below FM for Encryption & Decryption
CALL FUNCTION 'FIEB_PASSWORD_ENCRYPT'
CALL FUNCTION 'FIEB_PASSWORD_DECRYPT'
2009 Apr 04 11:29 AM
>
> 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??
2009 Apr 04 11:37 AM
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
2009 Apr 04 12:40 PM
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.
2009 Apr 04 2:32 PM
Venkat,
Do you still remember what happened last time you posted irrelevant information without reading the question?
Julius
2009 Apr 04 4:03 PM
sorry for the above answer ...I got a bit confused while reading this question.
2009 Apr 04 5:33 PM
Hi krupa,
you cannot do anything right now, you report source code is no longer available... You have only the compiled one!
Regards,
Ivan
2009 Apr 06 5:41 AM