[
https://issues.apache.org/jira/browse/PDFBOX-2456?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14191401#comment-14191401
]
Ralf Hauser commented on PDFBOX-2456:
-------------------------------------
Tree reasons why I tested an inner attachment:
a) because this is an application I need for real (simple encryption reveals
the file-name)
b) because one can simply compare the stream sizes of the inner attachments
(this is not possible with "test.pdf"
c) because with 128bit it works nicely, with 256bit in my environment, it also
works in java, but AR refuses to open the inner attachment
Why you are getting a BadPaddingException and an IllegalBlockSizeException
needs further investigation - doesn't happen to me.
Adding test cases with
i) longer files
ii) several pages
iii) text and images...
sounds all perfect - I am happy to be a first - pre-committ tester...
> create TestSymmetricKeyEncryption.java
> --------------------------------------
>
> Key: PDFBOX-2456
> URL: https://issues.apache.org/jira/browse/PDFBOX-2456
> Project: PDFBox
> Issue Type: Improvement
> Components: Utilities
> Affects Versions: 2.0.0
> Environment: java7 debian7
> Reporter: Ralf Hauser
> Fix For: 2.0.0
>
> Attachments: TestSymmetricKeyEncryption.java,
> TestSymmetricKeyEncryption.java, enc128bit_20141025_115145.pdf,
> enc256bit_20141025_105451.pdf, preEnc_20141025_105451.pdf,
> preEnc_20141025_115145.pdf
>
>
> similarly to org.apache.pdfbox.encryption.TestPublicKeyEncryption, also test
> password based encryption
> 1) 128bit
> 2) 256bit AES PDFBOX-1594
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)