[
https://issues.apache.org/jira/browse/PDFBOX-1594?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13944302#comment-13944302
]
John Hewson edited comment on PDFBOX-1594 at 3/23/14 2:10 AM:
--------------------------------------------------------------
I have one question about the patch, in the StandardSecurityHandler class, the
method prepareDocumentForEncryption generates a document id using the following
code:
{code}
byte[] id = md.digest( this.toString().getBytes("ISO-8859-1") );
COSString idString = new COSString();
idString.append( id );
{code}
Which is calling the toString() method of the StandardSecurityHandler, is this
what you intended?
was (Author: jahewson):
I have one question about the patch, in the StandardSecurityHandler class, the
method prepareDocumentForEncryption generates a document id using the following
code:
{code}
byte[] id = md.digest( this.toString().getBytes("ISO-8859-1") );
COSString idString = new COSString();
idString.append( id );
{code}
Which is calling the toString() method of the StandardSecurityHandler, did you
mean to call {{document.getDocument().toString()}} instead?
> Add support for AES256 Encryption
> ----------------------------------
>
> Key: PDFBOX-1594
> URL: https://issues.apache.org/jira/browse/PDFBOX-1594
> Project: PDFBox
> Issue Type: Improvement
> Reporter: Maruan Sahyoun
> Assignee: John Hewson
> Fix For: 2.0.0
>
> Attachments: fix-pdfbox-2.0.0-encrypt.diff, pdfbox-1.8.4-aes256.diff,
> pdfbox-2.0.0-r1580297-aes256.diff
>
>
> Adobe 9 added support for AES 256 encryption. Further information is
> available at
> http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/adobe_supplement_iso32000.pdf
> (specially 3.5.1) or ISO 32000-2.
--
This message was sent by Atlassian JIRA
(v6.2#6252)