How to create an encrypted ZIP file?

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.

Leave a Comment