shadow-crypt-shell 1.0.7

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

use shadow_crypt_core::profile::SecurityProfile;

use crate::memory::SecureString;

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

pub struct EncryptionInput {
    pub files: Vec<EncryptionInputFile>,
    pub password: SecureString,
    pub security_profile: SecurityProfile,
    pub output_dir: PathBuf,
}
impl EncryptionInput {
    pub fn new(
        files: Vec<EncryptionInputFile>,
        password: SecureString,
        security_profile: SecurityProfile,
        output_dir: PathBuf,
    ) -> Self {
        Self {
            files,
            password,
            security_profile,
            output_dir,
        }
    }
}

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