[Tutor] Re: Extracting from password protected zipfiles
Charlie Clark
charlie@begeistert.org
Thu May 15 12:39:00 2003
On 2003-05-15 at 18:00:06 [+0200], tutor-request@python.org wrote:
> The version of unzip on my system (v. 5.41) has a `-P' option where you
> can specify a password; the man page warns that using this option isn't
> secure.
>
> If the zipfile module doesn't accept passwords when opening a zipped
> file, then could you use an os.exec*() call and include the password as
> an argument to unzip?
I found 5.41 so I was able to use that. But the corresponding version of
zip doesn't support encryption. Maybe I'll have a look at the source and
see whether it's doable. Would be nice to have it.
Charlie