ansible.parsing.vault package¶
-
class
ansible.parsing.vault.VaultLib(password)[source]¶ Bases:
object-
is_encrypted(data)[source]¶ Test if this is vault encrypted data
Parameters: data – a byte str or unicode string to test whether it is recognized as vault encrypted data Returns: True if it is recognized. Otherwise, False.
-
encrypt(data)[source]¶ Vault encrypt a piece of data.
Parameters: data – a utf-8 byte str or unicode string to encrypt. Returns: a utf-8 encoded byte str of encrypted data. The string contains a header identifying this as vault encrypted data and formatted to newline terminated lines of 80 characters. This is suitable for dumping as is to a vault file.
-
-
class
ansible.parsing.vault.VaultEditor(password)[source]¶ Bases:
object
-
class
ansible.parsing.vault.VaultAES[source]¶ Bases:
object-
aes_derive_key_and_iv(password, salt, key_length, iv_length)[source]¶ Create a key and an initialization vector
-