Skip to content

Working with encrypted archives using external libraries #285

@HimeWorks

Description

@HimeWorks

There are JS libraries available for various encryption algorithms.

My understanding of how JSZip works is when I ask for a file to be loaded from the archive, it will automatically be decompressed for me.

I believe zip files are encrypted after they are compressed, so I will need to perform decryption before the decompression occurs.

Would it be possible to

  1. Provide an option to allow encrypted archives (simple flag), provided that
  2. We will be providing methods that will be executed BEFORE or AFTER the decompression occurs

So for example, I might set a beforeDecompress listener so that whenever async is called, it will grab the entry, run it through the callback, and then proceed to decompress it as usual.

My assumption is that the file directory can be read the same way as a zip archive without any encrypted entries.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions