Skip to main content

encrypt_bytes

Function encrypt_bytes 

Source
pub fn encrypt_bytes(data: &[u8], code: &str) -> Result<String>
Expand description

Encrypt arbitrary bytes with the given code; returns a base64 payload string. Uses the same AES-256-GCM scheme as encrypt_bundle.