EvanOxfeld/node-unzip

Unzipping the password Protected zip file.

vivekgs2007 opened this issue · 14 comments

Hi,
I have an issue in unzip the password protected file. Is their a way to do that.
It's very critical issue?
Thanks,
Vivek

+1

+1

👍

Any chance of this being supported?

Here is an outstanding issue with specs references on an actively maintained fork (unzipper).

Any updates on this Issue?
@ZJONSSON unzipper's stream([password]) will require file I don't have file I have stream only and have to store it directly as decrypted file.

@yganatra unzipper does not require a file to decrypt. You can pipe into unzipper.Parse({password:xxx}) or unzipper.ParseOne({password:xxx})

See also the https://github.com/ZJONSSON/node-unzipper/pull/30/files which unifies the streaming api and the random access api (Open).

Let me know if you have any issues.

@ZJONSSON perfect I was looking for that only. I have already looked at it but didn't catch that.
Thanks in advance.
I will implement that way and let you know if I found any issue :)

@ZJONSSON I tried it but same error log which was thrown by unzip module as well while unzipping protected zip
[Error: invalid stored block lengths] errno: -3, code: 'Z_DATA_ERROR'
Can you help me regarding this?
am I doing anything wrong?
extractedStream = stream.pipe(unzipper.Parse({password:'123'})); extractedStream.on('entry', function (entry) { var fileName = entry.path; var type = entry.type; // 'Directory' or 'File' var size = entry.size;

How to unzip an encrypted file (not a stream) with password?

is there any way to extract the zip[which is password protected] ?