javax.crypto.BadPaddingException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Encoding the passphrase
    via Stack Overflow by dodger
    ,
  • GitHub comment 286#239034320
    via GitHub by zzoi
    ,
    • javax.crypto.BadPaddingException: Given final block not properly padded at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:966) at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:824) at com.sun.crypto.provider.AESCipher.engineDoFinal(AESCipher.java:436) at javax.crypto.Cipher.doFinal(Cipher.java:2165) at com.test.ssh.SSH_Public_Private.deCryptPwd(SSH_Public_Private.java:191) at com.test.ssh.SSH_Public_Private.checkHostName(SSH_Public_Private.java:227) at com.test.ssh.SSH_Public_Private.checkHostName(SSH_Public_Private.java:223) at com.test.ssh.SSH_Public_Private.connectToSSH(SSH_Public_Private.java:64) at com.test.ssh.SSH_Public_Private.main(SSH_Public_Private.java:124)

    Users with the same issue

    ruifungruifung
    93 times, last one,
    muffinmannenmuffinmannen
    2 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    12 more bugmates