Git Product home page Git Product logo

Comments (6)

mkl-public avatar mkl-public commented on August 28, 2024 2

@Lonzak already correctly explained that R=5 encryption is part of an Adobe extension to PDF that never became standard and only is mentioned as deprecated and forbidden to use in ISO 32000-2.
In contrast to his assumption "Maybe it is only extending R=4 with AES256", though, the R=5 algorithm is more related to R=6 than R=4. The differences between R=5 and R=6 mostly are additional variable numbers of hashing rounds in the latter to make breaking the encryption harder for brute force and quantum approaches.

from openpdf.

Lonzak avatar Lonzak commented on August 28, 2024 1

MKL implemented support for R=6 some time ago (one of the best additions to openPDF imho).
However R=5 is a proprietary adobe extension which has been deprecated and should not be used. (Thats why it wasn't implemented)
You are of course free to implement it - perhaps mkl can give you some pointers. Maybe it is only extending R=4 with AES256?

from openpdf.

Lonzak avatar Lonzak commented on August 28, 2024 1

In contrast to his assumption "Maybe it is only extending R=4 with AES256", though, the R=5 algorithm is more related to R=6 than R=4.

...was just a (wild) guess ;-)

from openpdf.

brettrowberry avatar brettrowberry commented on August 28, 2024 1

Let's pretend that I write a perfect PR adding R = 5 support and it's merged. How long would it take to get a new version out in Maven Central?

from openpdf.

brettrowberry avatar brettrowberry commented on August 28, 2024

You are of course free to implement it

I'm going to keep getting PDFs with R = 5. So, either I'll have to:

  1. implement it as you suggest, or
  2. switch to PDFBox, which would be a pretty significant change to our code base.

from openpdf.

andreasrosdal avatar andreasrosdal commented on August 28, 2024

@brettrowberry please submit that perfect PR adding R = 5 support. I am sure the new version would be available within reasonable time in Maven Central. I am also seeing this Unknown encryption type R = 5 error in production, however the percentage is not very large.

from openpdf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.