I am creating an ZIP file with ZipFile in Python 2.5, it works ok so far:
import zipfile, os locfile = \"test.txt\" loczip = os.path.splitext (locfile)[0] +
I created a simple library to create a password encrypted zip file in python. - here
import pyminizip compression_level = 5 # 1-9 pyminizip.compress("src.txt", "dst.zip", "password", compression_level)
The library requires zlib.
I have checked that the file can be extracted in WINDOWS/MAC.