Skip to main content

decrypt

Function decrypt 

Source
pub fn decrypt(encrypted: &str, identities: &[Identity]) -> Result<String>
Expand description

Decrypt a SOPS dotenv document with the provided identities.

Fails closed when no identity can unwrap the data key or when the MAC does not match. Returns the plaintext dotenv text.