‎2006 Jan 19 12:42 PM
hi,
i'm looking for a way to encrypt or decrypt data before it's written or read from the database.
it should be possible to use some sort of key (or password) for the en- and decryption.
does somebody know some abap coding to take care that?
thanx in advance
‎2006 Jan 19 12:44 PM
FIEB_PASSWORD_ENCRYPT and
FIEB_PASSWORD_DECRYPT are Function modules which does the same.
‎2006 Jan 19 1:34 PM
thanx for the quick response. i just don't know how to use this functionmodules. i think i interpret the parameters wrong.
REPORT EN_DECRYPT_TEST.
*
Data enpwd(32) type c.
parameter pwd like enpwd .
Encrypting *******************
CALL FUNCTION 'FIEB_PASSWORD_ENCRYPT'
EXPORTING
IM_DECRYPTED_PASSWORD = pwd
IMPORTING
EX_ENCRYPTED_PASSWORD = enpwd
.
Decrypting *******************
CALL FUNCTION 'FIEB_PASSWORD_DECRYPT'
EXPORTING
IM_ENCRYPTED_PASSWORD = enpwd
IMPORTING
EX_DECRYPTED_PASSWORD = pwd
.
Output **********************
write:/ 'Encrypt data=', enpwd,
/ 'Decrypt data=', pwd.
‎2006 Jan 19 1:38 PM
Hi Dominik,
The usage of the Function module is correct but I am also lost as to how to explain the behavior of the decryption FM.
I'll explore some other Fms and get back to you.
Regards,
Ravi
‎2006 Jan 20 4:09 PM
‎2006 Jan 20 5:08 PM
‎2006 Feb 14 6:51 PM
Dominik,
In the FIEB_PASSWORD_ENCRYPT function module, if you double click on <b>perform encrypt_password</b>, there is a FORM called <b>character_search</b>. Look for a line like this:
<b>* describe field im_string length l_length.</b>
If this line is commented out, the encryption function module will not work. This line is commented out in my 4.7 system's FIEB_PASSWORD_ENCRYPT function module. I had to copy the code to my own function module and it works fine now.
Hope this helps,
Vince.
‎2006 Mar 10 3:40 PM
All,
We (still) have 4.6C system. These function modules work fine. I have couple of questions along this line though.
1) Do these FMs need SAPCrypto functionality for encryption and decryption? I don't beleive they do. If not, how does the FMs work?
2) Also, what type and level (RSA? 128-Bit) encryption do these modules use?
Appreciate your help.
-Thanks
‎2009 Aug 18 6:31 AM
Hi Vincent,
I have also copied FMs FIEB_PASSWORD_ENCRYPT and FIEB_PASSWORD_DECRYPT to uncomment piece of code you mentioned. But, I am not able to decypt the paswd properly. Help will be appriciated on how you have achieved this.
Gouri.
‎2009 Aug 20 9:41 AM
Maybe you can try this FM : DECODE_SLDPWD_BASE64 for 64 Bit encryption
‎2023 Dec 11 2:28 PM
Hi Indra,
Base64 is no encryption! This is a dangerous recomendation.
Best,
Jon
‎2006 Jan 20 5:05 PM
check this link , may be helpful
http://www.sap-img.com/abap/function-module-for-encryption-and-decryption.htm
‎2015 Jan 22 8:26 AM