compress_to_path_encrypted

Function compress_to_path_encrypted 

Source
pub async fn compress_to_path_encrypted(
    src: impl AsRef<Path>,
    dest: impl AsRef<Path>,
    password: Password,
) -> Result<(), Error>
Available on crate feature compress and non-WebAssembly and crate feature aes256 only.
Expand description

Compresses a source file or directory to a destination file path with password encryption.

This is a convenience function that handles file creation automatically.

ยงArguments

  • src - Path to the source file or directory to compress
  • dest - Path where the encrypted compressed archive will be created
  • password - Password to encrypt the archive with