Function ansible_vault::decrypt_vault [−][src]
pub fn decrypt_vault<T: Read>(
input: T,
key: &str
) -> Result<Vec<u8>, VaultError>
Decrypt an ansible vault formated stream
Message should be formatted with lines of 80 chars and indentation. Function expects header to be present but don’t check format : lines of any length or any indentation will do
$ANSIBLE_VAULT;1.1;AES256
33666638363066623664653234386231616339646438303933633830376132633330353032393364
3363373531316565663539326661393165323030383934380a366133633066623963303665303238
34633364626339313035633763313034366538363537306265316532663531363632383333353737
3863616362363731660a666161623033666331663937626433313432616266393830376431393665
3965
Arguments:
input
: a stream of encrypted message with ansible-vault headerkey
: the key to decrypt the message