title: How to extract a password protected zip file that is zipped using PKWARE SecureZip in Python? (Windows 10)
body: <p>I'm trying to extract contents of <strong>password protected</strong> zip files that have been zipped using PKWARE SecureZip in Python.
  Modules that I've tried already are zipfile and pyzipper. But methods of these modules always return 'NotImplementedError: strong encryption (flag bit 6)'.</p>
  <pre><code>from pyzipper
  
  with ZipFile('Test.zip') as tz:
      tz.extractall(pwd=bytes('testpass', 'utf-8'))
  </code></pre>
  <pre><code>Traceback (most recent call last):
    File &quot;D:/Pradeep/Python Workspace/Sandbox/EvoFileDownloader.py&quot;, line 4, in &lt;module&gt;
      tz.extractall(pwd=bytes('testpass', 'utf-8'))
    File &quot;D:\Program Files\Python\lib\zipfile.py&quot;, line 1616, in extractall
      self._extract_member(zipinfo, path, pwd)
    File &quot;D:\Program Files\Python\lib\zipfile.py&quot;, line 1669, in _extract_member
      with self.open(member, pwd=pwd) as source, \
    File &quot;D:\Program Files\Python\lib\zipfile.py&quot;, line 1500, in open
      raise NotImplementedError(&quot;strong encryption (flag bit 6)&quot;)
  NotImplementedError: strong encryption (flag bit 6)
  </code></pre>
  <p>I have tried to work around this by checking for ways to extract these zip files from the command prompt.
  However, I don't see 'pkzipc.exe' in my installation directory (as explained in <a href="https://pkware.cachefly.net/webdocs/manuals/pkzipcli14.pdf" rel="nofollow noreferrer">this</a> document).</p>
  <p>P.S: I do not have admin rights required to install additional software on my work computer (on which I'm trying this extraction).</p>
  <p>Can anyone help me with a solution for this?</p>