decrypt_vault_from_file

Function decrypt_vault_from_file 

Source
pub fn decrypt_vault_from_file<P: AsRef<Path>>(
    path: P,
    key: &str,
) -> Result<Vec<u8>, VaultError>
Expand description

Decrypt an ansible vault file using a key.

A wrapper for decrypt_vault method.

§Arguments:

  • path: the path to the encrypted vault file (&str, PathBuf, etc…)
  • key: the key to decrypt the file