encrypt_vault_from_file

Function encrypt_vault_from_file 

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

Encrypt a file to an ansible_vault string

A wrapper for encrypt_vault method.

ยงArguments:

  • path: the path to the file to encrypt
  • key: the key to encrypt the file