Function encrypt

Source
pub fn encrypt<T>(data: &T, secret: &Secret) -> Result<Vec<u8>>
where T: Serializer,
Expand description

Encrypts the given data using XChaCha20Poly1305 algorithm.