I\'ve been trying to implement a very simple script, extracting zip files that are password protected. I have created a simple zip file (test.zip) with the password \"1234\"
agree with eryksun & joaquin
7z l -slt test.zip | grep Method
will show you the compress method used.
7z a -p1234 -mem=ZipCrypto test.zip 1.txt 2.txt
will create a python zipfile compatible zip.
7z a -p1234 -mem=AES128 test.zip 1.txt 2.txt
will create a AES encrypted zip.
reference http://docs.bugaco.com/7zip/MANUAL/switches/method.htm