Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access file header attributes #248

Open
hsduk opened this issue Dec 28, 2015 · 2 comments
Open

Access file header attributes #248

hsduk opened this issue Dec 28, 2015 · 2 comments
Labels

Comments

@hsduk
Copy link

hsduk commented Dec 28, 2015

Hi
I'd like to read the zipfile's crc-32 attribute without decompressing as per https://en.wikipedia.org/wiki/Zip_(file_format)#File_headers
I noticed the code here says it is deprecated

crc32: function (input, crc) {

Is this possible with jszip ?

@dduponchel
Copy link
Collaborator

The function you link is a function used to compute the crc32 value of an input. The crc32 extracted from the zip file is here but it's not a public API.
Related to #247, exposing these informations seems a good idea.

@Mithgol
Copy link
Contributor

Mithgol commented Feb 10, 2017

This feature might help preventing at least one kind of a zip bomb (the kind with an extra large content).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants