Skip to main content

maybe_decrypt_inner

Function maybe_decrypt_inner 

Source
pub async fn maybe_decrypt_inner(
    ciphertext: String,
    password: Option<String>,
) -> Result<String, ()>
Expand description

Decrypt a hex-encoded ChaCha20-Poly1305 ciphertext using ENCRYPTION_KEY vault. If password is Some, derives a key from it instead.