method, const char
zip_file_set_encryption() function sets the encryption method for the file at position index in the zip archive to method using the password password. The method is the same as returned by zip_stat(3). For the method argument, currently only the following values are supported:
- No encryption.
- Winzip AES-128 encryption.
- Winzip AES-192 encryption.
- Winzip AES-256 encryption.
- Traditional PKWare encryption. Do not use this method, it is not secure. It is only provided for backwards compatibility.
If password is
the default password provided by
The current encryption method for a file in a zip archive can be determined using zip_stat(3).
zip_file_set_encryption() fails if:
zip_file_set_encryption() was added in libzip 1.2.0.