node-unzip icon indicating copy to clipboard operation
node-unzip copied to clipboard

Unzipping the password Protected zip file.

Open vivekgs2007 opened this issue 10 years ago • 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

vivekgs2007 avatar May 14 '15 07:05 vivekgs2007

+1

amazing-gao avatar Jul 21 '15 03:07 amazing-gao

+1

nripendra avatar Jul 21 '15 12:07 nripendra

+1

LPicker avatar Aug 17 '16 01:08 LPicker

+1

looveu avatar Oct 14 '16 09:10 looveu

:+1:

eeerin avatar Nov 29 '16 16:11 eeerin

Any chance of this being supported?

stefanKuijers avatar Jan 13 '17 08:01 stefanKuijers

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

ZJONSSON avatar Jan 14 '17 17:01 ZJONSSON

Resolved here: https://github.com/ZJONSSON/node-unzipper/pull/26/files

ZJONSSON avatar Jan 23 '17 21:01 ZJONSSON

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 avatar Jul 12 '17 11:07 yganatra

@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 avatar Jul 12 '17 13:07 ZJONSSON

@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 :)

yganatra avatar Jul 12 '17 13:07 yganatra

@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;

yganatra avatar Jul 13 '17 05:07 yganatra

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

patmeeker avatar Aug 08 '17 00:08 patmeeker

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

amitdhawan avatar Feb 21 '18 16:02 amitdhawan