Skip to main content

encrypt

Function encrypt 

Source
pub fn encrypt(
    key: &BackupKey,
    plain: &mut impl Read,
    out: &mut impl Write,
) -> Result<(String, u64)>
Expand description

Encrypts everything plain yields into out; returns the SHA-256 of the plain content and its length.