Skip to content

compressor: Add encryption support

Ondrej Holy requested to merge wip/oholy/compressor-encryption into master

AutoarExtractor supports extraction of encrypted archives. It would be nice to have support for encrypted archives also in AutoarCompressor. Though the libarchive library doesn't provide a much. It supports encryption only for the ZIP format. There is a choice between zipcrypt, aes128 and aes256. Given the phact that zipcrypt is insecure and not recommended, I think it is fine to hardcode aes256. It is probably a bit slower then aes128, but more secure. So the only thing which needs to be set is a passphrase. Let's add autoar_compressor_set_passphrase to allow creating encrypted archives.

Relates: nautilus#822 (closed)

Edited by Ondrej Holy

Merge request reports