Skip to main content

is_encrypted

Function is_encrypted 

Source
pub fn is_encrypted(data: &[u8]) -> bool
Available on crate feature encryption only.
Expand description

true when data carries the sealed-payload magic. Free function so callers can detect ciphertext without holding a key.