encrypt_key

Function encrypt_key 

Source
pub fn encrypt_key(
    secret_key: &str,
    encryption_key: &[u8; 32],
) -> Result<String, String>
Expand description

Encrypt a string with a 32-byte encryption key

Returns base64-encoded encrypted data