pub trait FileOptionsExt<'k> {
// Required method
fn with_deprecated_encryption(self, password: &'k [u8]) -> ZipResult<Self>
where Self: Sized;
}Expand description
Unstable methods for FileOptions.
Required Methods§
Sourcefn with_deprecated_encryption(self, password: &'k [u8]) -> ZipResult<Self>where
Self: Sized,
fn with_deprecated_encryption(self, password: &'k [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.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".