Hello,I used RSA Public/private key to encrypt AND zip a text file.It does well.Upon decryption using javax.crypto.Cipher with SunJCE as provider, I got BadPadding Exception . I used PKCS5Padding .any solutions?
A few things you could check:- proper use of doFinal(), close() etc.- try different padding/mode combinationsBut a look at your code would propably be the best.