encrypt_file

Function encrypt_file 

Source
pub fn encrypt_file<P: AsRef<Path>>(
    input_path: P,
    output_path: P,
    public_key_str: &str,
) -> Result<(), RsaUtilsError>
Expand description

Encrypt file using hybrid encryption (AES for file content, RSA for AES key) This matches the Java implementation’s approach