Skip to main content

maybe_decrypt

Function maybe_decrypt 

Source
pub async fn maybe_decrypt(input: String) -> Result<String, ()>
Expand description

Conditionally decrypt content. Handles crash recovery — if decryption fails on non-encrypted-looking content, returns it as-is.