javax.crypto.BadPaddingException

Not PKCS#1 block type 2 or Zero padding

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web7

  • via Unknown by Unknown author,
  • via Unknown by Unknown author,
  • via Unknown by 843811,
  • Stack trace

    • javax.crypto.BadPaddingException: Not PKCS#1 block type 2 or Zero padding at com.ibm.crypto.provider.RSA.engineDoFinal(Unknown Source) at javax.crypto.Cipher.doFinal(Unknown Source) at encryptdata_.readkey(encryptdata_.java:98) at encryptdataClient_.main(encryptdataClient_.java:19)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown visitor
    Unknown visitorOnce,