# Decrypting PDF and ZIP

**URL:** <https://community.n8n.io/t/decrypting-pdf-and-zip/19287>\
**Category:** Questions\
**Tags:** read-pdf, compression, crypto\
**Created:** [November 1, 2022, 9:26pm UTC](https://community.n8n.io/t/decrypting-pdf-and-zip/19287 "2022-11-01T21:26:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mokkin](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mokkin/32/18256_2.png) [@mokkin](https://community.n8n.io/u/mokkin)\
**Post date:** [November 1, 2022, 9:26pm UTC](https://community.n8n.io/t/decrypting-pdf-and-zip/19287/1 "2022-11-01T21:26:45Z")

</div>

I’m fetching an email including a PDF and a ZIP file (that contains a CSV at the end). Both files are encrypted with the same password. I’d like to read the PDF and the zipped CSV, but I could’nt find an option in the crypto nor the (de)compress node.

Is there one I missed?

---

<div class="post-metadata">

**Author:** ![pemontto](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/pemontto/32/2684_2.png) [@pemontto](https://community.n8n.io/u/pemontto)\
**Post date:** [November 2, 2022, 7:37am UTC](https://community.n8n.io/t/decrypting-pdf-and-zip/19287/2 "2022-11-02T07:37:58Z")

</div>

Unfortunately the underlying zip library doesn’t support password protected zips. Not clear how your CSV is encrypted though?

The workaround is to write the binary to the filesystem and the use the execute node to run shell or cmd tools against them, e.g. the zip command with supplied password

---

<div class="post-metadata">

**Author:** ![papermill-david](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/papermill-david/32/170073_2.png) [@papermill-david](https://community.n8n.io/u/papermill-david)\
**Post date:** [April 17, 2026, 1:21pm UTC](https://community.n8n.io/t/decrypting-pdf-and-zip/19287/3 "2026-04-17T13:21:55Z")

</div>

For unencrypting the PDF, I’d recommend qpdf [GitHub - qpdf/qpdf: qpdf: A content-preserving PDF document transformer · GitHub](https://github.com/qpdf/qpdf)
