Skip to Content
0
Apr 25, 2014 at 09:42 AM

Problem with password decryption - iaik.pkcs.pkcs1.b.b(Unknown Source)?

44 Views

Hi Experts

I am trying to decrypt the user login credentials while logging to SAP portal. Bellow code is used

PrivateKey privKey = bean.getRandomKey();

Cipher cipher = Cipher.getInstance("RSA");

cipher.init(Cipher.DECRYPT_MODE,privKey);

cipherData = cipher.doFinal(new BASE64Decoder().decodeBuffer(enPwd));

But I am getting the error specified below, May I kindly request you please give me some approach to resolve this problem if you have come across the same issue earlier.

iaik.pkcs.pkcs1.b.b(Unknown Source)

iaik.pkcs.pkcs1.RSACipher.a(Unknown Source)

iaik.pkcs.pkcs1.RSACipher.engineDoFinal(UnknownSource)

javax.crypto.Cipher.doFinal(DashoA12275)

When I tested the same code in other portal server (in DEV Server), The decryption is happening as expected. We use SAP Portal version 7.01 SP12 and JDK 1.4.2_19. I am Just wondering if I need to write new code or check any parameters or setting in portal server.

Appreciate your response.

Thank you && Regards

Durga Rao