unzip fails to extract password protected archive

2010-03-09 Thread Anton Shterenlikht
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?

Please advise
many thanks
anton


-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 331 5944
Fax: +44 (0)117 929 4423
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: unzip fails to extract password protected archive

2010-03-09 Thread Lowell Gilbert
Anton Shterenlikht me...@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/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org