[
https://issues.apache.org/jira/browse/PDFBOX-2456?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14208585#comment-14208585
]
Tilman Hausherr commented on PDFBOX-2456:
-----------------------------------------
When not providing the correct password, the old parser throws an exception
with the text "Cannot decrypt PDF, the password is incorrect". The nonSeq
parser throws an exception with the text "Error (IOException) while creating
security handler for decryption". That one is a rethrown exception, the
original one is "Cannot decrypt PDF, the password is incorrect".
[~lehmi], [~tboehme] shouldn't we instead just keep the IOException as it
comes? My thought would be to remove that "catch (Exception e)" part from the
nonSeqParser class.
> create TestSymmetricKeyEncryption.java
> --------------------------------------
>
> Key: PDFBOX-2456
> URL: https://issues.apache.org/jira/browse/PDFBOX-2456
> Project: PDFBox
> Issue Type: Improvement
> Components: Utilities
> Affects Versions: 1.8.7, 1.8.8, 2.0.0
> Environment: java7 debian7
> Reporter: Ralf Hauser
> Assignee: Tilman Hausherr
> Labels: AES256
> Fix For: 1.8.8, 2.0.0
>
> Attachments: AES256.diff, PasswordSample-256bit.pdf,
> 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)