Skip to main content

looks_encrypted

Function looks_encrypted 

Source
pub fn looks_encrypted(s: &str) -> bool
Expand description

Check if a string looks like encrypted content (hex-encoded ChaCha20 output). Minimum (empty message): 12 + 0 + 16 = 28 bytes = 56 hex chars.