on 05-04-2013 5:14 PM
Hi,
I am trying to decrypt an encrypted customer record that has Last Name, First Name and Middle Name(All these 3 fields come encrypted).
I am getting this exception while decrypting the middle name. Tried sending trimmed encrypted value to the decryption module and also non-trimmed encrypted value to the decryption module but didn't yield any furitful result.
com.triversity.security.service.GeneralTWSecurityException: com.triversity.security.service.GeneralTWSecurityException: javax.crypto.BadPaddingException: Invalid PKCS#5 padding: not all padding bytes are equal!
I am using TW Security libraries for decryption provided by SAP.
Any pointers to this issue is truly appreciated.
Thanks,
Sarat
Hi Sarat,
Did you try to decrypt the data outside PI ? Please check if the module code works in NWDS or eclipse.
Regards
Anupam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sarat,
My reply might not give you the solution to your current problem but I think it's good to mention that I also went through similar problems when trying to decrypt payload in PI. We were using external decryption java api's implemented within an adapter module called from PI's adapter engine.
Encrypting functionality went fine but decryption caused a lot of issues. Finally and after many tests we decided to temporary move the decryption functionality outside PI until SAP can provide us with a solution/patch for the problem. During the tests we noticed that whenever we tested the same logic outside PI it worked, even under the same OS and Server using JVM did work.
Regards, Roberto Viana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.