You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (Jira)" <ji...@apache.org> on 2021/01/29 07:24:00 UTC
[jira] [Commented] (PDFBOX-5092) Used PDFbox for document download
but for encryption it is currently pointing to MD5. I want to avoid using
of MD5 and use only AES. Can you suggest what changes I need to follow to
achieve the AES encryption
[ https://issues.apache.org/jira/browse/PDFBOX-5092?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17274198#comment-17274198 ]
Tilman Hausherr commented on PDFBOX-5092:
-----------------------------------------
I don't see how this is a "task". It sounds like a how-to question, which should be asked in the users mailing list. Please do so and include the code you used.
AES encryption is used if you set the key length to 256.
> Used PDFbox for document download but for encryption it is currently pointing to MD5. I want to avoid using of MD5 and use only AES. Can you suggest what changes I need to follow to achieve the AES encryption
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: PDFBOX-5092
> URL: https://issues.apache.org/jira/browse/PDFBOX-5092
> Project: PDFBox
> Issue Type: Task
> Components: Parsing
> Affects Versions: 2.0.22
> Reporter: Datta
> Priority: Critical
>
> Used PDFbox for document download but for encryption it is currently pointing to MD5. I want to avoid using of MD5 and use only AES. Can you suggest what changes I need to follow to achieve the AES encryption
>
> java.security.MessageDigest.getInstance(MessageDigest.java:192)
> org.apache.pdfbox.pdmodel.encryption.MessageDigests.getMD5(MessageDigests.java:39)
> org.apache.pdfbox.pdmodel.encryption.StandardSecurityHandler.prepareEncryptionDictRev2345(StandardSecurityHandler.java:500)
> org.apache.pdfbox.pdmodel.encryption.StandardSecurityHandler.prepareDocumentForEncryption(StandardSecurityHandler.java:394)
> can you provide information on this package on how to implement AES encryption?
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org