Unzipping using passwd.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kss
    New Member
    • Feb 2008
    • 1

    Unzipping using passwd.

    Hey all,
    I am new to python and I need to unzip a zip file which is password protected. I tried using zipfile class. Aparently, when i try doing a zip.read(filena me), it throws an exception stating "invalid stored block lengths". I am assuming this is because, the files inside the zip are password protected. How do I add the password parameter when unzipping? Any pointers would be extremely useful.

    Thanks!
  • diegososa
    New Member
    • Oct 2007
    • 19

    #2
    You can't... :(


    You should use an external zip program with command line support, and call it with "subprocess " .

    Comment

    Working...