Skip to main content

encrypt_with_key

Function encrypt_with_key 

Source
pub fn encrypt_with_key(
    plaintext: &str,
    key: &[u8; 32],
) -> Result<String, String>
Expand description

Encrypt a string with the global ENCRYPTION_KEY (ChaCha20-Poly1305).