Skip to main content

encrypt_file

Function encrypt_file 

Source
pub fn encrypt_file(
    src: &Path,
    dst: &Path,
    key_hex: &str,
    nonce_hex: &str,
) -> Result<(String, u64), String>
Expand description

Encrypt src into dst (ciphertext || tag), the counterpart of decrypt_file. Returns the SHA-256 and length of what was written: the blob a server will hold.