Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 09 Mar 2010 14:24:59 -0500
From:      Lowell Gilbert <freebsd-questions-local@be-well.ilk.org>
To:        Anton Shterenlikht <mexas@bristol.ac.uk>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: unzip fails to extract password protected archive
Message-ID:  <44tyspl2lw.fsf@be-well.ilk.org>
In-Reply-To: <20100309103133.GG52284@mech-cluster241.men.bris.ac.uk> (Anton Shterenlikht's message of "Tue, 9 Mar 2010 10:31:33 %2B0000")
References:  <20100309103133.GG52284@mech-cluster241.men.bris.ac.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
Anton Shterenlikht <mexas@bristol.ac.uk> writes:

> This is on FreeBSD ia64 9.0-CURRENT #0 r203484M: 
> I've zip-3.0 and unzip-6.0 installed from ports.
>
> When I try to add files to an archive with encryption,
> I cannot then extract them back:
>
>> ls -al > try
>> zip -e try.zip try
> Enter password: 
> Verify password: 
>   adding: try (deflated 42%)
>> rm try
>> unzip try.zip 
> Archive:  try.zip
>  extracting: try |
> unzip: ZIP decompression failed (-3)
>> ls -al try
> -rwxr-xr-x  1 mexas  wheel  0  9 Mar 10:27 try
>> 
>
> the extracted file is zero length.
>
> Maybe this is not supposed to work?

It does for me, but there are a number of problems with the zip
encryption (even aside from the fact that it's easy to break).
You might want to take a look at the extensive "DECRYPTION" 
section in the unzip(1) man page.

-- 
Lowell Gilbert, embedded/networking software engineer, Boston area
		http://be-well.ilk.org/~lowell/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44tyspl2lw.fsf>