Skip to main content

encrypt_bytes

Function encrypt_bytes 

Source
pub fn encrypt_bytes(
    data: &[u8],
    passphrase: &str,
    algo: EncryptionAlgorithm,
) -> Result<Vec<u8>, AgentError>
Expand description

Encrypt data, prepending a tag to identify algorithm during decryption.