shadow-crypt-shell 1.0.7

Main workflows and I/O operations for shadow-crypt
Documentation
use std::path::PathBuf;

use crate::memory::SecureString;

#[derive(Debug, Clone, PartialEq, Eq)]
pub struct DecryptionInputFile {
    pub path: PathBuf,
    pub filename: String,
    pub size: u64,
}

pub struct DecryptionInput {
    pub files: Vec<DecryptionInputFile>,
    pub password: SecureString,
    pub output_dir: PathBuf,
}
impl DecryptionInput {
    pub fn new(
        files: Vec<DecryptionInputFile>,
        password: SecureString,
        output_dir: PathBuf,
    ) -> Self {
        Self {
            files,
            password,
            output_dir,
        }
    }
}

pub struct DecryptionOutputFile {
    pub path: PathBuf,
    pub filename: String,
}