Hello,
I have a problem with using of a class PDFAESStream. I have an encrypted book and I'm trying to open it. For this purpose I use this code:
PDFAESStream stream = new PDFAESStream();
stream.open(bookPath, "MySecretKeyABCDE".getBytes());
The bookPath variable is an existing path to the book, which is encrypted via AES.
The open() method always returns false. For encryption, I simply used AES/CBC/PKCS5Padding. The open() method still returns false, because the condition
if( m_enc_len % BLOCK_ENC_SIZE != 4 ) // Line from your code
is always true.
Where is the problem?
Thank you in advance for your reply.