[][src]Function safe_core::utils::symmetric_encrypt

pub fn symmetric_encrypt(
    plain_text: &[u8],
    secret_key: &SymEncKey,
    nonce: Option<&SymEncNonce>
) -> Result<Vec<u8>, CoreError>

Symmetric encryption. If nonce is None, then it will be generated randomly.