zip.SetFileEncryption(id, idx, method[, pwd$])
idx in the zip archive
specified by id. The desired encryption method has to be passed in the method
parameter. Optionally, you can specify a password in the pwd$ argument. If the pwd$
argument is omitted or set to an empty string, the default password set using zip.SetDefaultPassword()
is used.
The method parameter must be one of the following constants:
#ZIP_EM_NONE:
#ZIP_EM_AES_128:
#ZIP_EM_AES_192:
#ZIP_EM_AES_256:Note that the change to the zip archive isn't done immediately but is postponed until you call zip.CloseArchive().