Trait FileOptionsExt

pub trait FileOptionsExt

Unstable methods for FileOptions.

Required Methods

fn with_deprecated_encryption(self, password: &[u8]) -> ZipResult<Self>
where
    Self: Sized,

Write the file with the given password using the deprecated ZipCrypto algorithm.

This is not recommended for new archives, as `ZipCrypto` is not secure (it can be cracked given 12 bytes of known plaintext after compression). It is provided only for backward compatibility with older software that doesn't support AES-encrypted archives.

Implementors