I'm trying to extract contents of password protected 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)'.
from pyzipper
with ZipFile('Test.zip') as tz:
tz.extractall(pwd=bytes('testpass', 'utf-8'))
Traceback (most recent call last):
File "D:/Pradeep/Python Workspace/Sandbox/EvoFileDownloader.py", line 4, in <module>
tz.extractall(pwd=bytes('testpass', 'utf-8'))
File "D:\Program Files\Python\lib\zipfile.py", line 1616, in extractall
self._extract_member(zipinfo, path, pwd)
File "D:\Program Files\Python\lib\zipfile.py", line 1669, in _extract_member
with self.open(member, pwd=pwd) as source, \
File "D:\Program Files\Python\lib\zipfile.py", line 1500, in open
raise NotImplementedError("strong encryption (flag bit 6)")
NotImplementedError: strong encryption (flag bit 6)
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 this document).
P.S: I do not have admin rights required to install additional software on my work computer (on which I'm trying this extraction).
Can anyone help me with a solution for this?