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();
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.
there are example in ReaderActivity.java
some codes are commented.
//byte key = new byte;
//stream.ImportFromFile("/sdcard/test.pdf"); //encrypt to /sdcard/ttt.pdf
//stream.ExportToFile("/sdcard/test1.pdf"); //decrypt to /sdcard/test1.pdf