javax.crypto.BadPaddingException: Given final block not properly padded at com.sun.crypto.provider.SunJCE_f.b(DashoA13*..) at com.sun.crypto.provider.SunJCE_f.b(DashoA13*..) at com.sun.crypto.provider.AESCipher.engineDoFinal(DashoA13*..) at javax.crypto.Cipher.doFinal(DashoA13*..)

Oracle Community | 900846 | 3 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Getting user passwords migrated from OIM 10g to OIM 11gR2

    Oracle Community | 3 years ago | 900846
    javax.crypto.BadPaddingException: Given final block not properly padded at com.sun.crypto.provider.SunJCE_f.b(DashoA13*..) at com.sun.crypto.provider.SunJCE_f.b(DashoA13*..) at com.sun.crypto.provider.AESCipher.engineDoFinal(DashoA13*..) at javax.crypto.Cipher.doFinal(DashoA13*..)

    Root Cause Analysis

    1. javax.crypto.BadPaddingException

      Given final block not properly padded at com.sun.crypto.provider.SunJCE_f.b(DashoA13*..) at com.sun.crypto.provider.SunJCE_f.b(DashoA13*..) at com.sun.crypto.provider.AESCipher.engineDoFinal(DashoA13*..) at javax.crypto.Cipher.doFinal(DashoA13*..)

      at com.thortech.xl.crypto.tcDefaultDBEncryptionImpl.decrypt()
    2. com.thortech.xl
      tcCryptoUtil.decrypt
      1. com.thortech.xl.crypto.tcDefaultDBEncryptionImpl.decrypt(Unknown Source)
      2. com.thortech.xl.crypto.tcCryptoUtil.decrypt(Unknown Source)
      3. com.thortech.xl.crypto.tcCryptoUtil.decrypt(Unknown Source)
      3 frames
    3. Unknown
      DecryptPassword.main
      1. DecryptPassword.main(DecryptPassword.java:21)
      1 frame