Adding back TripleDES decryption #538
Closed
pc-coholic
started this conversation in
Ideas
Replies: 1 comment 6 replies
-
Ah, someone using the public-key based document encryption feature in the wild? Interesting... 😉 I see your point. Adding back the dependency on I'll also take a look at #537. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Background: If you have an NDA with NXP and they provide you with controlled documents, those documents will have a big stamp applied all over them, as to be able to track them. But: they also apply "certificate security" to the documents, requiring the user to have their client certificate(s) installed and using a PDF-viewer that can decode such PDF files for your viewing pleasure.
Unfortunately, NXPs official recommendation is: Either use Windows and the official Adobe Acrobat (Reader) or - if you absolutely need to use Linux - there is this old-ass 9.5.5 version for unix systems. Good luck.
pyHanko seems to be a new, third option to this problem...
--force
-flag (see CLI: Parse --force flag #537)oscrypto
that fixes the detection of OpenSSL >= 3.0.10With this setup,
pyhanko decrypt pkcs12 --force
will decrypt the PDFs provided by NXP.Going this route is - unfortunately - required, since pyHanko 0.26.0 dropped support for
oscrypto
and by extensionDES
,TripeDES
andRC2
. NXP is using 3DES.Long story short: Is the decision on dropping 3DES final?
It is my understanding, that dropping the above 3 algos was mostly pinned on "old and outdated" but also "need to get rid of oscrypto"...
Just for fun, I tried plugging in a 3DS decryptor using the "dangerzone" (
cryptography.hazmat.decrepit.ciphers.algorithms
):This will throw a
RuntimeError: generator didn't stop
- but between me not knowing what I am doing and NXP doing weird things with their files, I don't really know where to look for this...Sooo... Any chance we could see a return of 3DES? Pretty, pretty please? :)
Beta Was this translation helpful? Give feedback.
All reactions